Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 961 Bytes

TPJOSInfo-IsServer.md

File metadata and controls

23 lines (13 loc) · 961 Bytes

IsServer class function

Project: System Information Unit.

Unit: PJSysInfo.

Class: TPJOSInfo

Applies to: ~>5.0

class function IsServer: Boolean;

Description

Returns true if the operating system is a server system or False if not.

When the program is run in compatibility mode, this method may test whether the "emulated" operating system is a server. However, this is not a reliable test. For example when emulating a server operating system on a desktop system IsServer continues to report False!.

On operating systems where CanSpoof returns False this method will always check whether the installed operating system is a server, regardless of any compatibility mode.

When running on Windows 2000 and later you can use IsWindowsServer to ensure that compatibility mode has no effect on the returned value.