Determines whether the current process is elevated.
#Include <WinAPIEx.au3>
_WinAPI_IsElevated ( )
None. |
Success | 1 - The current process is elevated. |
0 | Otherwise. |
Additionally, the function always sets the @extended flag to one of the following values (any other value | |
indicates an unexpected error). | |
0 | Indicates that either the User Account Control (UAC) is disabled, or the process is started by a standard |
user (not a member of the Administrators group). | |
The following two values can be returned only if both the UAC is enabled and the user is a member | |
of the Administrators group (that is, the user has a "split" token). | |
1 | Indicates that the process is running elevated. |
2 | Indicates that the process is not running elevated. |
失败: | 返回 0 并设置 @error 标志为非 0 值. |