My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
PJSysInfoGlobals  
PJSysInfoUnit global variables.
Updated May 8, 2011 by delphidabbler

Project: System Information Unit

Unit: PJSysInfo.

PJSysInfo Global Variables

The PJSysInfo unit defines several global variables containing extended operating system information. These variables build on similar Win32XXX variables defined in the SysUtils unit.

The variables defined in PJSysInfo are:

Win32HaveExInfo

var Win32HaveExInfo: Boolean;

This global variable is true if extended operating system information is available and false if not. When false the values of the Win32ServicePackMajor, Win32ServicePackMinor, Win32SuiteMask and Win32ProductType variables are not valid and should not be used.

Note that extended operating system information is available only on Windows NT platform operating systems from and including Windows NT4 Service Pack 6.

Win32ServicePackMajor

var Win32ServicePackMajor: string;

This global variable stores the major version number of the latest Service Pack installed on the system or 0 if there is no service pack.

Note that this variable only stores valid information if the Win32HaveExInfo variable is true.

Win32ServicePackMinor

var Win32ServicePackMinor: string;

This global variable stores the minor version number of the latest Service Pack installed on the system.

Note that this variable only stores valid information if the Win32HaveExInfo variable is true.

Win32SuiteMask

var Win32SuiteMask: Integer;

This global variable stores a comination of bit flags that identify the product suites available on the system. The value is a combination of VER_SUITE_xxx constants that are defined by Microsoft. The constants are declared in the PJSysInfo unit.

Note that this variable only stores valid information if the Win32HaveExInfo variable is true.

Win32ProductType

var Win32ProductType: Integer;

This global variable stores additional information about an operating system product.a. The value one of the VER_NT_xxx constants defined by Microsoft. The constants are declared in the PJSysInfo unit.

Note that this variable only stores valid information if the Win32HaveExInfo variable is true.

Win32HaveProductInfo

var Win32HaveProductInfo: Boolean;

This global variable informs whether product information is available from the operating system. Such information is obtained from the Windows API function GetProductInfo, which is available on Windows Vista and later operating systems.

When Win32HaveProductInfo is True the product information code can be read from Win32ProductInfo, otherwise Win32ProductInfo is set to 0.

Win32ProductInfo

var Win32ProductInfo: LongWord;

This global variable provides additional product information about the operating system. The value is one of the PRODUCT_xxx constants defined by Microsoft. The constants are declared in the PJSysInfo unit.

Note that this variable only stores valid information if the Win32HaveProductInfo variable is true, otherwise Win32ProductInfo is set to 0.


Sign in to add a comment
Powered by Google Project Hosting