WinNTSystemInfo
To use the WinNTSystemInfo interface from a Windows 2000 client, use the following Visual Basic code as a guide:
Dim WinNTSysInfo as WinNTSystemInfo Set WinNTSysInfo = New WinNTSystemInfo Debug.Print WinNTSysInfo.ComputerName Debug.Print WinNTSysInfo.DomainName Debug.Print WinNTSysInfo.PDC Debug.Print WinNTSysInfo.UserName
WinNTSystemInfo::ComputerName
| Description | Returns the name of the client computer |
| Provider Support | Windows 2000 clients only |
| Data Type | String |
| Read-Only? | Yes |
WinNTSystemInfo::DomainName
| Description | Returns the current domain of the client computer |
| Provider Support | Windows 2000 clients only |
| Data Type | String |
| Read-Only? | Yes |
WinNTSystemInfo::PDC
| Description | Returns the name of the PDC or PDC emulator associated with the client machine domain |
| Provider Support | Windows 2000 clients only |
| Data Type | String |
| Read-Only? | Yes |
WinNTSystemInfo::UserName
| Description | Returns the username logged into the client machine |
| Provider Support | Windows 2000 clients only |
| Data Type | String |
| Read-Only? | Yes |