home *** CD-ROM | disk | FTP | other *** search
- {*******************************************************}
- { }
- { MiTeC System Information Component }
- { Machine Detection Part }
- { version 8.3 for Delphi 5,6,7 }
- { }
- { Copyright ⌐ 1997,2003 Michal Mutl }
- { }
- {*******************************************************}
-
- {$INCLUDE MITEC_DEF.INC}
-
- unit MSI_Machine;
-
- interface
-
- uses
- SysUtils, Windows, Classes, MSI_Common, MSI_SMBIOS;
-
- type
- TBIOS = class(TPersistent)
- private
- FBIOSExtendedInfo: string;
- FBIOSCopyright: string;
- FBIOSName: string;
- FBIOSDate: string;
- public
- procedure GetInfo;
- procedure Report(var sl :TStringList; Standalone: Boolean = True); virtual;
- published
- property Copyright :string read FBIOSCopyright {$IFNDEF D6PLUS} write FBIOSCopyright {$ENDIF} stored false;
- property Date :string read FBIOSDate {$IFNDEF D6PLUS} write FBIOSDate {$ENDIF} stored false;
- property ExtendedInfo :string read FBIOSExtendedInfo {$IFNDEF D6PLUS} write FBIOSExtendedInfo {$ENDIF} stored false;
- property Name :string read FBIOSName {$IFNDEF D6PLUS} write FBIOSName {$ENDIF} stored false;
- end;
-
- TMachine = class(TPersistent)
- private
- FName: string;
- FLastBoot: TDatetime;
- FUser: string;
- FSystemUpTime: Extended;
- FScrollLock: Boolean;
- FNumLock: Boolean;
- FCapsLock: Boolean;
- FComp: string;
- FSMBIOS: TSMBIOS;
- FMode: TExceptionMode;
- FBIOS: TBIOS;
- function GetSystemUpTime: Extended;
- public
- constructor Create;
- destructor Destroy; override;
- procedure GetInfo(IncludeSMBIOS: DWORD = 1);
- procedure Report(var sl :TStringList; Standalone: Boolean = True); virtual;
- published
- property ExceptionMode: TExceptionMode read FMode write FMode;
- property Name :string read FName {$IFNDEF D6PLUS} write FName {$ENDIF} stored false;
- property User :string read FUser {$IFNDEF D6PLUS} write FUser {$ENDIF} stored false;
- property SystemUpTime :Extended read FSystemUpTime {$IFNDEF D6PLUS} write FSystemUpTime {$ENDIF} stored false;
- property LastBoot :TDatetime read FLastBoot {$IFNDEF D6PLUS} write FLastBoot {$ENDIF} stored false;
- property CapsLock: Boolean read FCapsLock {$IFNDEF D6PLUS} write FCapsLock {$ENDIF} stored false;
- property NumLock: Boolean read FNumLock {$IFNDEF D6PLUS} write FNumLock {$ENDIF} stored false;
- property ScrollLock: Boolean read FScrollLock {$IFNDEF D6PLUS} write FScrollLock {$ENDIF} stored false;
- property Computer: string read FComp {$IFNDEF D6PLUS} write FComp {$ENDIF} stored False;
- property SMBIOS: TSMBIOS read FSMBIOS {$IFNDEF D6PLUS} write FSMBIOS {$ENDIF} stored False;
- property BIOS: TBIOS read FBIOS {$IFNDEF D6PLUS} write FBIOS {$ENDIF} stored False;
- end;
-
-
- implementation
-
-