Beispiel #1
0
        public static ulong SetAcl(string url, string acl)
        {
            UrlAcl u = new UrlAcl();

            u.Prefix = url;
            u.Acl    = acl;
            ulong rc = HttpNative.SetAcl(IntPtr.Zero, Config.UrlAclInfo, u, UrlAcl.Length, IntPtr.Zero);

            return(rc);
        }
Beispiel #2
0
 internal static extern ulong GetAcl(
     IntPtr service,
     Config configId,
     QueryUrlAcl query,
     int queryLength,
     ref UrlAcl acl,
     int aclLength,
     out long returnLength,
     IntPtr overlapped
     );
Beispiel #3
0
        public static ulong GetAcl(string url, out string acl)
        {
            acl = null;
            QueryUrlAcl q = new QueryUrlAcl();
            q.Prefix = url;
            q.QueryDesc = QueryType.Exact;
            UrlAcl info = new UrlAcl();
            long returnLength;

            ulong rc = HttpNative.GetAcl(IntPtr.Zero, Config.UrlAclInfo, q, QueryUrlAcl.Length, ref info, UrlAcl.Length, out returnLength, IntPtr.Zero);
            if (rc == 0)
                acl = info.Acl;
            return rc;
        }
Beispiel #4
0
        public static ulong GetAcl(string url, out string acl)
        {
            acl = null;
            QueryUrlAcl q = new QueryUrlAcl();

            q.Prefix    = url;
            q.QueryDesc = QueryType.Exact;
            UrlAcl info = new UrlAcl();
            long   returnLength;

            ulong rc = HttpNative.GetAcl(IntPtr.Zero, Config.UrlAclInfo, q, QueryUrlAcl.Length, ref info, UrlAcl.Length, out returnLength, IntPtr.Zero);

            if (rc == 0)
            {
                acl = info.Acl;
            }
            return(rc);
        }
Beispiel #5
0
 internal static extern ulong SetAcl(
     IntPtr handle,
     Config configId,
     UrlAcl urlAcl,
     int length,
     IntPtr overlapped
     );
Beispiel #6
0
 internal static extern ulong GetAcl(
     IntPtr service,
     Config configId,
     QueryUrlAcl query,
     int queryLength,
     ref UrlAcl acl,
     int aclLength,
     out long returnLength,
     IntPtr overlapped
     );
Beispiel #7
0
 public static ulong SetAcl(string url, string acl)
 {
     UrlAcl u = new UrlAcl();
     u.Prefix = url;
     u.Acl = acl;
     ulong rc = HttpNative.SetAcl(IntPtr.Zero, Config.UrlAclInfo, u, UrlAcl.Length, IntPtr.Zero);
     return rc;
 }