home *** CD-ROM | disk | FTP | other *** search
- {*******************************************************}
- { }
- { MiTeC System Information Console Object }
- { version 8.3 for Delphi 5,6,7 }
- { }
- { Copyright ⌐ 1997,2003 Michal Mutl }
- { }
- {*******************************************************}
-
- {$INCLUDE MITEC_DEF.INC}
-
- unit MSI_Console;
-
- interface
-
- uses
- MSI_CPU, MSI_Machine, MSI_Devices, MSI_Display, MSI_Network, MSI_Media,
- MSI_Memory, MSI_Engines, MSI_APM, MSI_Disk, MSI_OS, MSI_SMBIOS,
- MSI_Printers, MSI_Software, MSI_Startup, MSI_Common, MSI_Storage, MSI_USB,
- MSI_Processes,
- Windows, SysUtils, Classes;
-
- type
- TSubObject = (soCPU, soMachine, soDevices, soDisplay, soNetwork, soMedia,
- soMemory, soStorage, soUSB, soEngines, soAPM, soDisk, soOS,
- soPrinters, soSoftware, soStartup, soProcesses);
-
- TSubObjects = set of TSubObject;
-
- const
- soAll = [soCPU, soMachine, soDevices, soDisplay, soNetwork, soMedia,
- soMemory, soStorage, soUSB, soEngines, soAPM, soDisk, soOS,
- soPrinters, soSoftware, soStartup, soProcesses];
-
- type
- TMSI = class(TPersistent)
- private
- fSubObjects: TSubObjects;
- FCPU: TCPU;
- FMemory: TMemory;
- FOS :TOperatingSystem;
- FDisk :TDisk;
- FMachine: TMachine;
- FNetwork: TNetwork;
- FDisplay: TDisplay;
- FEngines: TEngines;
- FDevices: TDevices;
- FAPM :TAPM;
- FAbout: string;
- FMedia: TMedia;
- FPrinters: TPrinters;
- FSoftware: TSoftware;
- FStartup: TStartup;
- FMode: TExceptionMode;
- FStorage: TStorage;
- FUSB: TUSB;
- FProcessList: TProcessList;
- procedure SetMode(const Value: TExceptionMode);
- public
- constructor Create(ASubObjects: TSubObjects = soAll);
- destructor Destroy; override;
- procedure Refresh;
- procedure Report(var sl :TStringList); virtual;
- procedure ExportOverview(var sl: TStringList);
-
- property About :string read FAbout;
- property ExceptionMode: TExceptionMode read FMode Write SetMode;
- property CPU :TCPU read FCPU;
- property Memory :TMemory read FMemory;
- property OS :TOperatingSystem read FOS;
- property Disk :TDisk read FDisk;
- property Machine :TMachine read FMachine;
- property Network :TNetwork read FNetwork;
- property Display :TDisplay read FDisplay;
- property Media :TMedia read FMedia;
- property Devices :TDevices read FDevices;
- property Storage :TStorage read FStorage;
- property USB :TUSB read FUSB;
- property Engines :TEngines read FEngines;
- property APM :TAPM read FAPM;
- property Printers :TPrinters read FPrinters;
- property Software :TSoftware read FSoftware;
- property Startup: TStartup read FStartup;
- property ProcessList: TProcessList read FProcessList;
- end;
-
- implementation
-
-