Determines whether a program would require a UAC elevation prompt.
UacExePromptTest( programname )
(s) programname: specifies path and filename of the EXE to be tested.
(i) see below.
Returns |
Meaning |
-1 |
running program would return an error. |
0 |
program would not require elevation. |
1 |
program would require elevation. |
val = UacExePromptTest( "Notepad.exe" ) Message( "UacExePromptTest Returned", val ) Exit