UacExePromptTest

Determines whether a program would require a UAC elevation prompt.

Syntax:

UacExePromptTest( programname )

Parameters:

(s) programname: specifies path and filename of the EXE to be tested.

Returns:

(i) see below.

     

Returns

Meaning

-1

running program would return an error.

0

program would not require elevation.

1

program would require elevation.

 

Example:
val = UacExePromptTest( "Notepad.exe" )
Message( "UacExePromptTest Returned", val )
Exit
See Also:

UacElevationLevel, UacManifestSettings