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.

CanSpoof class function

Project: System Information Unit.

Unit: PJSysInfo.

Class: TPJOSInfo

Applies to: ~>5.0

class function CanSpoof: Boolean;


Checks if the reported operating can be “spoofed” when the program is running in compatibility mode.

When this method returns True it indicates that some methods of TPJOSInfo and some global variables will return the details of the compatibility mode OS instead of the actual one.

When CanSpoof returns False returned OS information will be the installed operating system and the operating system compatibility mode is ignored.

See the documentation of the relevant methods and global variables for details of which of them are affected by spoofing.