home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 March
/
Chip_1999-03_cd.bin
/
zkuste
/
delphi
/
D34
/
MSYSINFO.ZIP
/
MSysInfo.int
< prev
Wrap
Text File
|
1999-01-26
|
4KB
|
130 lines
// MiTeC SysInfo 2.2 - ⌐ 1997-99, MichaL MutL
// Delphi 3,4 Non-visual component
// providing system information
unit MSysInfo;
interface
type
TMSysInfo = class(TComponent)
public
constructor Create(AOwner:TComponent); override;
destructor Destroy; override;
function GetCPUSpeed :extended;
function GetIPAddress :string;
function LocalIP :string;
function GetCPUArc(CPUArchitecture :word) :string;
function GetCPUType(CPUType :dword) :string;
function GetMediaType(MediaType :dword) :string;
function GetOSName(PlatformID :dword) :string;
function GetLocalIPList :TStrings;
function GetBootTimeInfo(var LastBoot :tdatetime) :double;
function GetTicksPerSecond(Iterations :Word) :Comp;
function GetTimeStamp :_LARGE_INTEGER;
function GetPriority(p :longword) :string;
function GetWinLangName: string;
function FormatSeconds(TotalSeconds :comp; WholeSecondsOnly, DisplayAll, DTFormat :Boolean) :String;
procedure Refresh;
published
property About :string;
FIXED property cmpName :string;
property cmpIPAddress :string;
property cmpLastBoot :string;
property cmpBootTime :string;
property cpuArchitecture : WORD;
property cpuType : DWORD;
property cpuActiveMask : DWORD;
property cpuNumber : DWORD;
property cpuLevel : Word;
property cpuRevision : Word;
property cpuVendor : string;
property cpuVendorID : string;
property cpuSpeed :extended;
property osMajorVersion: DWORD;
property osMinorVersion: DWORD;
property osBuildNumber: WORD;
property osPlatformId: DWORD;
property osCSDVersion: string;
property osMinApplicationAddress: DWORD;
property osMaxApplicationAddress: DWORD;
property osVersionName :string;
property osUser :string;
property osSerial :string;
property osRegOrg : string;
property osRegUser : string;
NEW property osTimeZone :string;
property vidAdapter :string;
property vidDAC :string;
property vidChip :string;
property vidMemory :integer;
property vidHorzRes :integer;
property vidVertRes :integer;
property vidColorDepth :integer;
property sndAdapter :string;
property sndWaveIn :string;
property sndWaveOut :string;
property sndMIDIIn :string;
property sndMIDIOut :string;
property sndAUX :string;
property sndMixer :string;
property prnName :string;
property monName :string; //only W95/98
property memTotalPhys : DWORD;
property memFreePhys : DWORD;
property memTotalVirtual : DWORD;
property memFreeVirtual : DWORD;
property memTotalPageFile : DWORD;
property memFreePageFile : DWORD;
property memMemUsage : DWORD;
property memPageSize : DWORD;
property memAllocationGranularity : DWORD;
property dskMediaPresent :boolean;
property dskDiskCount :word;
property dskSign : char;
property dskFreeSpace : extended;
property dskTotalSpace : extended;
property dskCompressed :boolean;
property dskSectorsPerCluster :dword;
property dskBytesPerSector :dword;
property dskTotalClusters :dword;
property dskFileSystem :string;
property dskSerialNumber :dword;
property dskVolumeLabel :string;
property dskMediaType :integer;
property dskAvailableDisks :string;
property biosName :string;
property biosCopyright :string;
property biosExtendedInfo :string;
property biosDate :string read;
property biosVideoVersion :string;
property biosVideoDate :string;
FIXED property drxVersion :string; //in development
property netAdapter :string;
NEW property dbODBCVersion :string;
NEW property dbBDEVersion :string;
property Name;
property Tag;
end;