using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
namespace Win32API
{
class Netapi32
{
// NetApiBufferFree
[DllImport("Netapi32", SetLastError = true), SuppressUnmanagedCodeSecurityAttribute]
public static extern int NetApiBufferFree(IntPtr pBuf);
// NetServerEnum
[DllImport("Netapi32", CharSet = CharSet.Auto, SetLastError = true), SuppressUnmanagedCodeSecurityAttribute]
public static extern int NetServerEnum(string ServerNane, int dwLevel, ref IntPtr pBuf, int dwPrefMaxLen, out int dwEntriesRead, out int dwTotalEntries, int dwServerType, string domain, out int dwResumeHandle);
}
}