Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 679 Bytes

TPJComputerInfo-IsAdmin.md

File metadata and controls

21 lines (12 loc) · 679 Bytes

IsAdmin class function

Project: System Information Unit.

Unit: PJSysInfo.

Class: TPJComputerInfo

Applies to: ~>5.0

class function IsAdmin: Boolean;

Description

Checks if the current user has administrator privileges and returns True if so, or False if not.

True is always returned on the Windows 95 platform, since there is no real concept of "administrator" on the platform.

WARNING: If the program is running on a Windows NT platform operating system in Windows 9x compatibility mode, IsAdmin will always return True regardless of whether the user actually has admin privileges or not.