Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 974 Bytes

File metadata and controls

31 lines (19 loc) · 974 Bytes

Platform class function

Project: System Information Unit.

Unit: PJSysInfo.

Class: TPJOSInfo

Applies to: ~>5.0

class function Platform: TPJOSPlatform;

type TPJOSPlatform = (ospWinNT, ospWin9x, ospWin32s);

Description

Returns a value from the TPJOSPlatform enumeration identifying the OS platform. Possible values are:

Value Meaning
ospWinNT Windows NT platform.
ospWin9x Windows 9x platform.
ospWin32s The Win32s platform running on another operating system.

If the platform is not recognised an EPJSysInfo exception is raised.

When the program is run in compatibility mode, this method will return the platform of the "emulated" operating system.

On operating systems where CanSpoof returns False this method will return the platform of the installed operating system, regardless of any compatibility mode.