Using Win32 functions in Visual FoxPro Image Gallery
Network Management
..msdn
NetApiBufferFree
NetApiBufferSize
NetConnectionEnum
NetFileClose
NetFileEnum
NetFileGetInfo
NetGetDCName
NetGroupEnum
NetLocalGroupEnum
NetMessageBufferSend
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetScheduleJobAdd
NetScheduleJobDel
NetScheduleJobEnum
NetServerEnum
NetServerGetInfo
NetSessionEnum
NetShareAdd
NetShareDel
NetShareEnum
NetShareSetInfo
NetUserAdd
NetUserChangePassword
NetUserDel
NetUserEnum
NetUserGetGroups
NetUserGetInfo
NetUserGetLocalGroups
NetUserSetInfo
NetWkstaGetInfo
NetWkstaTransportEnum
NetWkstaUserEnum
Code examples:
Retrieving configuration information for the specified server (Win2000/XP)
Retrieving configuration information for the specified server (Win98/Me)
NetServerGetInfo
..msdn    Add comment     W32 Constants      Translate this page
The NetServerGetInfo function retrieves current configuration information for the specified server.
Code examples:
Retrieving configuration information for the specified server (Win2000/XP)
Retrieving configuration information for the specified server (Win98/Me)
Declaration:
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
);
FoxPro declaration:
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
Parameters:
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.
Return value:
If the function succeeds, the return value is NERR_Success (0). Otherwise the return value can be one of the predefined error codes.
Word Index links for the NetServerGetInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-02-11 20:17:46
Modified: 2002-02-11 20:22:32
Visited in last 7 days: 15
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.235.16.159)
6 sec.Function: 'NetWkstaGetInfo'
Function group: 'Network Management'
Google
Advertise here!