View Single Post
Old 5th January 2011, 00:26   #87  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Here is an update on the "process elevation" issue:

It seems that on systems with UAC disabled (i.e. lowest UAC level in Windows 7) the "TokenIsElevated" property will always return TRUE, even when the process was not elevated explicitly. Therefore it seems better to check the "TokenElevationType" property instead, which AFAIU will return TokenElevationTypeDefault in that particular case. With UAC enabled it will return either TokenElevationTypeLimited (not elevated) or TokenElevationTypeFull (explicitly elevated). So from now on I will simply look at the "TokenElevationType" and raise the warning only in the case of TokenElevationTypeFull.

http://www.mediafire.com/file/5bneyp....Build-217.exe
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 5th January 2011 at 00:42.
LoRd_MuldeR is offline   Reply With Quote