| Home | All functions | Categories |
vuIsElevated(), LONG
Checks whether the current process is running with elevated privileges (administrative rights).
This is useful when your application requires Administrator access to perform certain tasks.
| Parameter | Data Type | Description |
|---|---|---|
| None | This function takes no parameters |
Elevated LONG
ElevatedStr CSTRING(6)
CODE
Elevated = vuIsElevated()
IF Elevated
ElevatedStr = 'TRUE'
ELSE
ElevatedStr = 'FALSE'
END
MESSAGE('vuIsElevated returned: ' & ElevatedStr, 'Elevation Test')
Notes
To check the type of elevation (standard user, elevated admin, or legacy admin), use vuElevationType().
On systems with User Account Control (UAC), this indicates whether your process has an elevated token.
| Home | All functions | Categories |