User
|
The UserAccountControl type exposes the following members.
Name | Description | |
---|---|---|
IsCurrentProcessElevated | Returns true if the current process is elevated, i.e. if the process went through an elevation consent phase. | |
IsCurrentProcessVirtualized | Returns true if the current process is using UAC virtualization. | |
IsUacEnabled | Returns true if User Account Control (UAC) is enabled on this machine. | |
IsUserAdmin | Returns true if the current user has administrator privileges. |
Name | Description | |
---|---|---|
CreateProcessAsAdmin | Creates a process under the elevated token, regardless of UAC settings or the manifest associated with that process. | |
CreateProcessAsStandardUser | Creates a process under the standard user if the current process is elevated. The identity of the standard user is determined by retrieving the user token of the currently running Explorer (shell) process. | |
DisableUac | Disables User Account Control by changing the LUA registry key. The changes do not have effect until the system is restarted. | |
DisableUacAndRestartWindows | Disables User Account Control and restarts the system. | |
EnableUac | Enables User Account Control by changing the LUA registry key. The changes do not have effect until the system is restarted. | |
EnableUacAndRestartWindows | Enables User Account Control and restarts the system. |