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 "NetGetDCName" in [All]

netapi32

.
Summary
The NetGetDCName function 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. Also, you cannot remote this function to a non-PDC server.
.

static extern NetApiStatus NetGetDCName(string serverName, string domainName, out IntPtr buffer);

.

  Private Shared Function NetGetDCName(ByVal serverName As String, ByVal domainName As String, ByRef buffer As IntPtr) As NetApiStatus

.

        NetApiStatus result = NetGetDCName(null, null, out domainInfo);

.

      Dim result As NetApiStatus = NetGetDCName(Nothing, Nothing, domainInfo)

.
Documentation
[NetGetDCName] on MSDN

 
Access PInvoke.net directly from VS: