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.

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.