@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: TODO - a short description !!!!C# Signature: [DllImport("NetApi32.dll", CharSet=CharSet.Auto, SetLastError=true)] internal static extern System.Int32 DsGetDcSiteCoverage( [MarshalAs(UnmanagedType.LPTStr)] string ServerName, out System.Int64 EntryCount, out IntPtr SiteNames ); !!!!VB Signature: Please add one! !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: long lEntryCount = 0; IntPtr pSiteNames; int i = DsGetDcSiteCoverage("myDCname.domain1.mydomains.com", out lEntryCount, out pSiteNames); Console.WriteLine("Status: " + i.ToString()); Console.WriteLine("Entries: " + lEntryCount.ToString()); for (int iData = 0; iData < lEntryCount; iData++) { Console.WriteLine(Marshal.PtrToStringAuto(Marshal.ReadIntPtr(pSiteNames, iData * IntPtr.Size))); } NetApiBufferFree(pSiteNames); Documentation: DsGetDcSiteCoverage@msdn on MSDN
Edit netapi32.DsGetDcS...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.