Developers may often require to collect system info such as computer, processor, devices, networks, etc. for various purposes in your Delphi application. Accessing that information is no longer a tough task. MiTec’s System Information Management Suite is the right choice for easy use in your applications. In this blog post, how to use the TMiTec_SystemInfo component to access system information with the sample application.
Platforms: Windows.
Installation Steps:
- Download the System Information Management Suite trails setup from here.
- Unzip it and navigate to the respective Delphi version in your system e.g C:UsersDownloadsMSICS_TrialRAD21.
- Using Delphi, do a file/open and choose MiTeC_Common_xxx.dpk which is a runtime package containing commonly used routines. Click compile button.
- Open MSICS_xxx_Rtl.dpk (runtime source for all components) and then click on the Compile button.
- Open DesignTime package MSICS_xxx_Dsgn.dpk and then click on the Install button.
- You should see the “MSIC Suite” tab on the component palette.
How to run the Demo app:
- Navigate to the Unzipped System Information Management Suite trails setup folder mentioned in installation steps 2. e.g) C:UsersDownloadsMSICS_TrialDemosDelphi1.
- Open the project Demo in RAD studio 10.4.1 or the existing version. Include the search path of the common folder and C:UsersDownloadsMSICS_TrialRAD21Common and C:UsersDownloadsMSICS_TrialRAD21MSICS compile and Run the application.
- This Demo App shows how to access the system information like Computer, OperatingSystem, CPU, Memory, Storage, USB, Graphics, Monitor, Audio, Network, Printers, etc.
Components used in MSIC Demo App:
- TMiTeC_SystemInfo: This component encapsulates most of MSICS components into one interface. Key properties are shown below. Using those properties we can easily get the respective component properties. e.g consider CPU property has its own properties such as CPU architecture, Brand, CPU count, etc. Using this simple component you can access the entire system information quickly. Alternatively, we can access these components individually.
- TOpenDialog, and TSaveDialog, TButton to open and save the system information to file.
- TTreeView, to poulated the collected system information in a tree view.
Implementation Details:
- An instance is created SI of TMiTeC_SystemInfo. Using SI properties CPU, OS, USB, Printers the respective values were added to the tree node. The below code snippet collect the system information and added to the tree view.
Developers are not required to spend many hours identifying and using the low-level system APIs to collect system information. Use this MiTeC component suite and get the job done quickly.
With the use of a Windows IDE, you can easily access windows system info in your Delphi application with a component suite. Try your Free Trial here.