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 the name of the primary domain controller (PDC) and join status information
NetGetDCName
..msdn    Add comment     W32 Constants      Translate this page
Returns the name of the primary domain controller (PDC). It does not return the name of the backup domain controller (BDC) for the specified domain.
Code examples:
Retrieving the name of the primary domain controller (PDC) and join status information
Declaration:
NET_API_STATUS NetGetDCName(
  LPCWSTR servername,
  LPCWSTR domainname,
  LPBYTE *bufptr
);
FoxPro declaration:
DECLARE INTEGER NetGetDCName IN netapi32;
    STRING    servername,;
    STRING    domainname,;
    INTEGER @ bufptr
Parameters:
servername
[in] Pointer to a constant Unicode string specifying the name of the remote server on which the function is to execute.

domainname
[in] Pointer to a constant Unicode string specifying the name of the domain.

bufptr
[out] Pointer to an allocated buffer that receives a Unicode string which specifies the server name of the PDC of the domain.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Unsupported.

This buffer is allocated by the system and must be freed using the NetApiBufferFree function.
Word Index links for the NetGetDCName :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-10-16 23:41:20
Modified: 2001-11-27 22:17:44
Visited in last 7 days: 12
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.82.116.210)
4.43 min.Example: 'Storing content of the Clipboard to a bitmap file'
Google
Advertise here!