Checks if the current user has administrator privileges.
IsAdmin ( )
Parameters
None.
Return Value
Success: | Returns 1 if the current user has administrator privileges. |
Failure: | Returns 0 if user lacks admin privileges. |
Remarks
This function will always return 1 under Window 95/98/Me.
Related
RunAsSet
Example
If IsAdmin() Then MsgBox(0, "", "Admin rights detected")