C language function:DsAddressToSiteNames sample codes

Search sample code in the internet.It is the result.


TITLE : DsRoleGetPrimaryDomainInformation function (Windows)
DWORD DsAddressToSiteNames(.......
http://msdn.microsoft.com/en-us/library/ms675916(v=vs.85).aspx


TITLE : How to determine AD site of a computer object | Run On Azure
Private Function DsAddressToSiteNames(ByVal ComputerName As String, ByVal EntryCount As Integer, ByVal SocketAddresses() As SOCKET_ADDRESS, ByRef SiteNames As IntPtr) As Integer.......
http://www.flexecom.com/determining-ad-site-of-computer-objects/
TITLE : How to determine AD site of a computer object | Run On Azure
rc = DsAddressToSiteNames("YOUR DOMAIN CONTROLLER FQDN", 1, SocketAddress, pSites).......
http://www.flexecom.com/determining-ad-site-of-computer-objects/
search Google

https://www.google.com/#q=DsAddressToSiteNames