Group: Network Management - Library: netapi32
Retrieving configuration information for the specified server (Win98/Me)
Retrieving configuration information for the specified server (Win2000/XP)
Windows NT/2000/XP:
NET_API_STATUS NetServerGetInfo(
LPWSTR servername,
DWORD level,
LPBYTE *bufptr
);
Windows 95/98/Me:
extern API_FUNCTION
NetServerGetInfo(
const char FAR * pszServer,
short sLevel,
char FAR * pbBuffer,
unsigned short cbBuffer,
unsigned short FAR * pcbTotalAvail
); Windows NT/2000/XP:
DECLARE INTEGER NetServerGetInfo IN netapi32;
STRING servername,;
INTEGER level,;
STRING @ bufptr
Windows 95/98/Me:
DECLARE INTEGER NetServerGetInfo IN svrapi;
STRING pszServer,;
INTEGER sLevel,;
STRING @ pbBuffer,;
SHORT cbBuffer,;
SHORT @ pcbTotalAvail servername [in] Pointer to a string that specifies the 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. The format of this data depends on the value of the level parameter.
If the function succeeds, the return value is NERR_Success (0). Otherwise the return value can be one of the predefined error codes.
Home