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.

IsUACActive class function

Project: System Information Unit.

Unit: PJSysInfo.

Class: TPJComputerInfo

Applies to: ~>5.0

class function IsUACActive: Boolean;

Description

Checks if UAC (user account control) is active on the host computer and returns True if so, or False if not.

Since UAC requires Windows Vista or later, False is always returned Windows XP and earlier.

WARNING: If the program is running on Windows Vista or later in Windows XP or earlier compatibility mode, IsUACActive will always return False regardless of whether UAC is actually active or not.