System Information Unit

   
Release: 3.3.1
Date: 07 April 2011
Delphi Compatibility:
 D1   D2   D3   D4   D5   D6   D7  D2005 D2006 D2007 D2009 D2010  DXE  DXE2
Red LED Red LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Grey LED Grey LED

Overview

This unit contains a group of static classes and some global variables that provide information about the user's computer system and operating system. The static classes are:

  • TPJComputerInfo – provides information about the host computer.
  • TPJSystemFolders – gets the full path to certain system folders.
  • TPJOSInfo – gives information about the operating system information including the platform, product name, product ID code, version and service packs.

In addition, the unit extends the information provided by the SysUtils unit's Win32xxx variables (such as Win32Platform) by defining further Win32xxx variables that store the extended operating system information available on later NT platform OSs.

Deprecated Code

The TPJSysInfo component and SIGetxxx functions provided in earlier versions of the unit are no longer compiled by default. The code can be included by defining the symbol PJSYSINFO_COMPILE_DEPRECATED before compiling.

Compatibility

Although the unit will compile with Delphi 3 and later, it is strongly recommended that Delphi 6 or later is used. This is because earlier versions that do not support the setting of registry flags via TRegistry may not behave as expected on 64 bit Windows.

Documentation

The component is documented in the System Information Component Wiki.

Users of Delphi version 3 to 7 can also make use of the help file that is included in the download. It integrates with the Delphi 3-7 help system. The help file is a WinHelp file and therefore does not work on Windows Vista unless WinHelp has been downloaded and installed. See Microsoft Knowledge Base Article KB917607 for further information.

Demo Program

A small demo program is also included in the download that shows the information provided by all the unit's classes, functions and global variables.

The demo requires Delphi 4 or later.