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.
Project: System Information Unit.
Unit: PJSysInfo.
Class: TPJOSInfo
Applies to: ~>5.0
class function MajorVersion: Integer;
Returns the major version number of the operating system.
The corresponding minor version number is provided by the MinorVersion method.
When the program is run in compatibility mode, this method will return the major version number of the “emulated” operating system.
On operating systems where CanSpoof returns False
this method will return the major version number of the installed operating system, regardless of any compatibility mode.