docs

Home All functions Categories

vuIsElevated()

vuIsElevated(), LONG

Description

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.

Parameters

Parameter Data Type Description
None   This function takes no parameters

Returns

Example

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