UserAccountControl Methods |
The UserAccountControl type exposes the following members.
Name | Description | |
---|---|---|
GetProcessIntegrityLevel |
The function gets the integrity level of the current process. Integrity
level is only available on Windows Vista and newer operating systems, thus
GetProcessIntegrityLevel throws a C++ exception if it is called on systems
prior to Windows Vista.
| |
IsCurrentUserInAdminGroup |
The function checks whether the primary access token of the process belongs
to a user account that is a member of the local Administrators group, even if
it currently is not elevated.
| |
IsCurrentUserInGroup |
Determines whether the current user is in the specified group.
| |
IsProcessElevated |
The function gets the elevation information of the current process. It
dictates whether the process is elevated or not. Token elevation is only
available on Windows Vista and newer operating systems, thus
IsProcessElevated throws a C++ exception if it is called on systems prior
to Windows Vista. It is not appropriate to use this function to determine
whether a process is run as administrator.
| |
IsRunAsAdmin |
The function checks whether the current process is run as administrator.
In other words, it dictates whether the primary access token of the
process belongs to user account that is a member of the local
Administrators group and it is elevated.
| |
IsUserInAdminGroup |
The function checks whether the object associated with the access token belongs
to a user account that is a member of the local Administrators group, even if
it currently is not elevated.
| |
IsUserInGroup |
Determines whether the current user is in the specified group.
| |
LogOnInteractiveUser(NetworkCredential, SafeTokenHandle) |
Logs on the user with the given credentials as an interactive user.
| |
LogOnInteractiveUser(String, String, String, SafeTokenHandle) |
Logs on the user with the given credentials as an interactive user.
| |
PromptForCredential |
Prompts the user for credential.
|