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.

Windows10PlusVersionName class function

Project: System Information Unit.

Unit: PJSysInfo

Class: TPJOSInfo

Applies to: ~>5.30

class function Windows10PlusVersionName: string;

Description

Returns the release version name of a Windows 10 or 11 operating system, such as '1507' or '24H2'. If the operating system is earlier than Windows 10 then an empty string is returned.

If the OS is earlier than Windows 10 then an is returned.

If the OS is Windows 10 or later but is a dev, beta etc. build whose version can’t be detected then 'Unknown' is returned.

Note

Some Windows 10 and 11 versions have the same string, such as '22H2'.

See Also