UacElevationLevel

Gets the current UAC elevation level.

Syntax:

UacElevationLevel ()

Parameters:

none

Returns:

(i) level

     

Return value is one of the following levels:

Level

Meaning

0

Error, or unsupported platform.

1

Process is default (UAC is disabled, or standard user).

2

Process is running elevated.

3

Process is not running elevated (user is in Administrators group).

 

Example:
level = UacElevationLevel( )
Message( "Current UAC elevation level", level )
Exit
See Also:

UacManifestSettings, UacExePromptTest