Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "DsGetDcName" in [All]

netapi32

.
  • computerName: String that specifies the name of the remote server to process this function. This parameter must be the name of a domain controller. A non-domain controller can call this function by calling DsGetDcName to find the domain controller.
. .
Summary
The DsGetDcName function returns the name of a domain controller in a specified domain. This function accepts additional domain controller selection criteria to indicate preference for a domain controller with particular characteristics.
.

static extern int DsGetDcName

.

Declare Function DsGetDcName Lib "netapi32.dll" (TODO) As TODO

.

Pointer to a PDOMAIN_CONTROLLER_INFO value that receives a pointer to a DOMAIN_CONTROLLER_INFO structure that contains data about the domain controller selected. This structure is allocated by DsGetDcName. The caller must free the structure using the NetApiBufferFree function when it is no longer required.

.

  static extern int DsGetDcName  

.

    DSGETDCNAME_FLAGS flags,

.

  public enum DSGETDCNAME_FLAGS : uint

.

     int val = DsGetDcName("","",0,"",

.

     DSGETDCNAME_FLAGS.DS_DIRECTORY_SERVICE_REQUIRED|

.

     DSGETDCNAME_FLAGS.DS_RETURN_DNS_NAME|

.

     DSGETDCNAME_FLAGS.DS_IP_REQUIRED, out pDCI);

.
Documentation
[DsGetDcName] on MSDN
.

    if(DsGetDcName(null, null, null, null, 0, out pDCI)==0)


 
Access PInvoke.net directly from VS: