2518 Users online, 5.65 mbps
Quick Search
Already a member?
Username:
Password:
Register Here!





system.iscurrentuserlocaladministrator Function

Syntax

system.iscurrentuserlocaladministrator()

Parameters

none

Return Value

  • boolean
    TRUE if the current thread is running as a user that is member of the local admins group. FALSE if not.

Remarks

This does not check if the user is administrator, when the system is part of a Windows Domain.

Example

if (not system.iscurrentuserlocaladministrator()) then
  messagebox("you need to be administrator", "systool")
end

See also

 
systool/lua/system.isiscurrentuserlocaladministrator.txt · Acessed 515 times · Last modified: 2006/01/15 00:00