Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

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.