System Information Unit

   
Release: 3.3
Date: 31 December 2009
Delphi Compatibility:
 D1   D2   D3   D4   D5   D6   D7  D2005
(Win32)
D2006
(Win32)
D2007 D2009
(Win32)
D2010
(Win32)
Red LED Red LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green 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.

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.