Exemplo n.º 1
0
 internal static extern Result DelAcl(
     IntPtr handle,
     Config configId,
     ref NativeAcl urlAcl,
     int length,
     IntPtr overlapped
     );
Exemplo n.º 2
0
 internal static extern Result GetAcl(
     IntPtr service,
     Config configId,
     NativeQuery query,
     int queryLength,
     ref NativeAcl acl,
     int aclLength,
     out long returnLength,
     IntPtr overlapped
     );
Exemplo n.º 3
0
 public bool DelAcl(string url, string acl)
 {
     try
     {
         NativeAcl u = new NativeAcl();
         u.Prefix = url;
         u.Acl    = acl;
         var rc = Native.DelAcl(IntPtr.Zero, Config.UrlAclInfo, ref u, NativeAcl.Length, IntPtr.Zero);
         return((int)rc == (int)Result.OK);
     }
     catch
     {
         return(false);
     }
 }