Group: Network Management - Library: netapi32
Retrieving configuration information for the specified workstation (Win2000/XP)
NET_API_STATUS NetWkstaGetInfo(
LPWSTR servername,
DWORD level,
LPBYTE* bufptr
);
DECLARE INTEGER NetWkstaGetInfo IN netapi32;
STRING servername,;
INTEGER lvl,;
INTEGER @ bufptr
servername [in] Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
level [in] Specifies the information level of the data.
bufptr [out] Pointer to the buffer that receives the data.
If the function succeeds, the return value is NERR_Success (0).