home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 February
/
Chip_2004-02_cd1.bin
/
zkuste
/
konfig
/
download
/
msic
/
Help
/
Int
/
MiTeC_WkstaNT.int
< prev
next >
Wrap
Text File
|
2003-08-26
|
2KB
|
77 lines
{*******************************************************}
{ }
{ MiTeC System Information Component }
{ Windows NT Workstation Info }
{ version 8.3 for Delphi 5,6,7 }
{ }
{ Copyright ⌐ 1997,2003 Michal Mutl }
{ }
{*******************************************************}
{$INCLUDE MITEC_DEF.INC}
unit MiTeC_WkstaNT;
interface
uses Windows, Classes, SysUtils;
type
PNTWkstaTransRecord = ^TNTWkstaTransRecord;
TNTWkstaTransRecord = record
Name: string;
Address: string;
Quality: DWORD;
VCSCount: DWORD;
IsWAN: Boolean;
end;
PNTWkstaUserRecord = ^TNTWkstaUserRecord;
TNTWkstaUserRecord = record
Name: string;
Domain: string;
Domains: string;
Server: string;
end;
TNTWksta = class(TPersistent)
private
FTrans, FUsers: TStringList;
FMachine: string;
FMajor: DWORD;
FMinor: DWORD;
FPlatformId: DWORD;
FDomain: string;
FName: string;
procedure RetrieveTrans(AMachine: string);
procedure RetrieveUsers(AMachine: string);
procedure RetrieveInfo(AMachine: string);
function GetTrans(Index: DWORD): PNTWkstaTransRecord;
function GetTransCount: DWORD;
procedure FreeTransList(var AList: TStringList);
procedure FreeUserList(var AList: TStringList);
function GetUser(Index: DWORD): PNTWkstaUserRecord;
function GetUserCount: DWORD;
public
constructor Create;
destructor Destroy; override;
procedure RefreshTrans;
procedure RefreshUsers;
procedure RefreshInfo;
property Machine: string read FMachine write FMachine;
property TransportCount: DWORD read GetTransCount;
property Transports[Index: DWORD]: PNTWkstaTransRecord read GetTrans;
property UserCount: DWORD read GetUserCount;
property Users[Index: DWORD]: PNTWkstaUserRecord read GetUser;
property MajorVersion: DWORD read FMajor;
property MinorVersion: DWORD read FMinor;
property PlatformId: DWORD read FPlatformId;
property ComputerName: string read FName;
property DomainName: string read FDomain;
end;
implementation