![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Detect admin privilege due to elevation? What API can I use to distinguish between having administrator privilege normally, versus having administrator privilege due to elevation (where a user is prompted to enter an admin account and password)? -- Regards, Frank |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: Detect admin privilege due to elevation? None. There is no difference between the two. You could look to see if UAC is enabled and surmise from that. "Frank S" wrote: > What API can I use to distinguish between having administrator privilege normally, versus having > administrator privilege due to elevation (where a user is prompted to enter an admin account and > password)? > > -- > Regards, > > Frank > |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: Detect admin privilege due to elevation? Frank S wrote: > What API can I use to distinguish between having administrator privilege > normally, versus having administrator privilege due to elevation (where a > user is prompted to enter an admin account and password)? You can use GetTokenElevation() with a TOKEN_INFORMATION_CLASS of TokenElevation or TokenElevationType to determine if and how a token is elevated. The Windows SDK does not seem to have these values documented, so you may have to look at winnt.h to see what can be returned for these. -- Larry Futrell |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Lost Admin Privilege! Please Help Me! | eldron | General Discussion | 20 | 08-12-2008 01:09 PM |
| detect user privilege level | mjblood | General Discussion | 0 | 05-27-2008 08:57 AM |
| Elevation of privilege question and Support Tools | JCB | Vista networking & sharing | 1 | 08-03-2007 06:36 AM |
| admin privilege | Ravi | Vista account administration | 2 | 07-05-2007 12:41 PM |
| Best practices for privilege elevation in cmdlets? | Alex K. Angelopoulos [MVP] | PowerShell | 5 | 09-29-2006 10:35 AM |