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.

Description class function

Project: System Information Unit.

Unit: PJSysInfo.

Class: TPJOSInfo

Applies to: ~>5.0

class function Description: string;

Description

Returns a description of the operating system. The description depends on the available information and the platform.

For the Windows 9x platform systems the product name is given along with details of any service pack, e.g. Windows 98, Windows 98 SE.

For NT platform operating systems the name of the operating system is provided (e.g. Windows Vista or Windows NT) along with the edition (e.g. Professional), any service packs and the build number. On Windows NT the version number follows the product name.

When the program is run in compatibility mode, this method will return the description of the “emulated” operating system.

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

Description includes information about any service packs from the ServicePack property.

[~>5.3] Description now gets service pack information from the ServicePackEx property instead of ServicePack. This ensures that Description contains information about updates that aren’t classed as service packs, for e.g. Windows 10 Version 1607.