csharp/tyranid/WindowsRpcClients/Win10_1809/authz.dll/0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7_0.0.cs

0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7_0.0.cs
//------------------------------------------------------------------------------
// 
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// 
//------------------------------------------------------------------------------

// Source Executable: c:\windows\system32\authz.dll
// Interface ID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7
// Interface Version: 0.0



namespace rpc_0b1c2170_5732_4e0e_8cd3_d9b16f3b84d7_0_0
{
    
    #region Marshal Helpers
    internal clast _Marshal_Helper : NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer
    {
        public void Write_0(Struct_0 p0)
        {
            WriteStruct(p0);
        }
        public void Write_1(Struct_1 p0)
        {
            WriteStruct(p0);
        }
        public void Write_2(Struct_2 p0)
        {
            WriteStruct(p0);
        }
        public void Write_3(Struct_3 p0)
        {
            WriteStruct(p0);
        }
        public void Write_4(Struct_4 p0)
        {
            WriteStruct(p0);
        }
        public void Write_5(Struct_5 p0)
        {
            WriteStruct(p0);
        }
        public void Write_6(Struct_7 p0)
        {
            WriteStruct(p0);
        }
        public void Write_7(Struct_8 p0)
        {
            WriteStruct(p0);
        }
        public void Write_8(Struct_9 p0)
        {
            WriteStruct(p0);
        }
        public void Write_9(Union_10 p0, long p1)
        {
            WriteUnion(p0, p1);
        }
        public void Write_10(Struct_11 p0)
        {
            WriteStruct(p0);
        }
        public void Write_11(Struct_12 p0)
        {
            WriteStruct(p0);
        }
        public void Write_12(Struct_13 p0)
        {
            WriteStruct(p0);
        }
        public void Write_13(Struct_14 p0)
        {
            WriteStruct(p0);
        }
        public void Write_14(Struct_15 p0)
        {
            WriteStruct(p0);
        }
        public void Write_15(Struct_16 p0)
        {
            WriteStruct(p0);
        }
        public void Write_16(Struct_17 p0)
        {
            WriteStruct(p0);
        }
        public void Write_17(Union_18 p0, long p1)
        {
            WriteUnion(p0, p1);
        }
        public void Write_18(Struct_19 p0)
        {
            WriteStruct(p0);
        }
        public void Write_19(int[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_20(sbyte[] p0)
        {
            WriteFixedPrimitiveArray(p0, 6);
        }
        public void Write_21(Struct_5[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_22(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_23(int[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_24(Struct_12[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_25(Struct_15[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_26(Struct_17[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_27(string p0, long p1)
        {
            WriteConformantVaryingString(p0, p1);
        }
        public void Write_28(string p0, long p1)
        {
            WriteConformantVaryingString(p0, p1);
        }
        public void Write_29(Struct_7[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_30(NtApiDotNet.Ndr.Marshal.NdrEnum16[] p0, long p1)
        {
            WriteConformantArrayCallback(p0, new System.Action(this.WriteEnum16), p1);
        }
    }
    internal clast _Unmarshal_Helper : NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer
    {
        public _Unmarshal_Helper(NtApiDotNet.Win32.Rpc.RpcClientResponse r) : 
                base(r.NdrBuffer, r.Handles, r.DataRepresentation)
        {
        }
        public _Unmarshal_Helper(byte[] ba) : 
                base(ba)
        {
        }
        public Struct_0 Read_0()
        {
            return ReadStruct();
        }
        public Struct_1 Read_1()
        {
            return ReadStruct();
        }
        public Struct_2 Read_2()
        {
            return ReadStruct();
        }
        public Struct_3 Read_3()
        {
            return ReadStruct();
        }
        public Struct_4 Read_4()
        {
            return ReadStruct();
        }
        public Struct_5 Read_5()
        {
            return ReadStruct();
        }
        public Struct_7 Read_6()
        {
            return ReadStruct();
        }
        public Struct_8 Read_7()
        {
            return ReadStruct();
        }
        public Struct_9 Read_8()
        {
            return ReadStruct();
        }
        public Union_10 Read_9()
        {
            return ReadStruct();
        }
        public Struct_11 Read_10()
        {
            return ReadStruct();
        }
        public Struct_12 Read_11()
        {
            return ReadStruct();
        }
        public Struct_13 Read_12()
        {
            return ReadStruct();
        }
        public Struct_14 Read_13()
        {
            return ReadStruct();
        }
        public Struct_15 Read_14()
        {
            return ReadStruct();
        }
        public Struct_16 Read_15()
        {
            return ReadStruct();
        }
        public Struct_17 Read_16()
        {
            return ReadStruct();
        }
        public Union_18 Read_17()
        {
            return ReadStruct();
        }
        public Struct_19 Read_18()
        {
            return ReadStruct();
        }
        public int[] Read_19()
        {
            return ReadConformantArray();
        }
        public sbyte[] Read_20()
        {
            return ReadFixedPrimitiveArray(6);
        }
        public Struct_5[] Read_21()
        {
            return ReadConformantStructArray();
        }
        public sbyte[] Read_22()
        {
            return ReadConformantArray();
        }
        public int[] Read_23()
        {
            return ReadConformantArray();
        }
        public Struct_12[] Read_24()
        {
            return ReadConformantStructArray();
        }
        public Struct_15[] Read_25()
        {
            return ReadConformantStructArray();
        }
        public Struct_17[] Read_26()
        {
            return ReadConformantStructArray();
        }
        public Struct_7[] Read_27()
        {
            return ReadConformantStructArray();
        }
        public NtApiDotNet.Ndr.Marshal.NdrEnum16[] Read_28()
        {
            return ReadConformantArrayCallback(new System.Func(this.ReadEnum16));
        }
    }
    #endregion
    #region Complex Types
    public struct Struct_0 : NtApiDotNet.Ndr.Marshal.INdrConformantStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteSByte(Member0);
            m.WriteSByte(Member1);
            m.Write_1(Member2);
            m.Write_19(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(Member8, "Member8"), Member1);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadSByte();
            Member1 = u.ReadSByte();
            Member2 = u.Read_1();
            Member8 = u.Read_19();
        }
        int NtApiDotNet.Ndr.Marshal.INdrConformantStructure.GetConformantDimensions()
        {
            return 1;
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public sbyte Member0;
        public sbyte Member1;
        public Struct_1 Member2;
        public int[] Member8;
        public static Struct_0 CreateDefault()
        {
            Struct_0 ret = new Struct_0();
            ret.Member8 = new int[0];
            return ret;
        }
        public Struct_0(sbyte Member0, sbyte Member1, Struct_1 Member2, int[] Member8)
        {
            this.Member0 = Member0;
            this.Member1 = Member1;
            this.Member2 = Member2;
            this.Member8 = Member8;
        }
    }
    public struct Struct_1 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.Write_20(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(Member0, "Member0"));
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.Read_20();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 1;
        }
        public sbyte[] Member0;
        public static Struct_1 CreateDefault()
        {
            Struct_1 ret = new Struct_1();
            ret.Member0 = new sbyte[6];
            return ret;
        }
        public Struct_1(sbyte[] Member0)
        {
            this.Member0 = Member0;
        }
    }
    public struct Struct_2 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt64(Member0);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt64();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 8;
        }
        public long Member0;
        public static Struct_2 CreateDefault()
        {
            return new Struct_2();
        }
        public Struct_2(long Member0)
        {
            this.Member0 = Member0;
        }
    }
    public struct Struct_3 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Member0);
            m.WriteInt32(Member4);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt32();
            Member4 = u.ReadInt32();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public int Member4;
        public static Struct_3 CreateDefault()
        {
            return new Struct_3();
        }
        public Struct_3(int Member0, int Member4)
        {
            this.Member0 = Member0;
            this.Member4 = Member4;
        }
    }
    public struct Struct_4 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Member0);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_0));
            m.WriteInt32(Member10);
            m.WriteEmbeddedPointer(Member18, new System.Action(m.Write_21), Member10);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt32();
            Member8 = u.ReadEmbeddedPointer(new System.Func(u.Read_0), true);
            Member10 = u.ReadInt32();
            Member18 = u.ReadEmbeddedPointer(new System.Func(u.Read_21), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public int Member10;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member18;
        public static Struct_4 CreateDefault()
        {
            return new Struct_4();
        }
        public Struct_4(int Member0, System.Nullable Member8, int Member10, Struct_5[] Member18)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
            this.Member10 = Member10;
            this.Member18 = Member18;
        }
    }
    public struct Struct_5 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt16(Member0);
            m.WriteInt16(Member2);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.WriteGuid));
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt16();
            Member2 = u.ReadInt16();
            Member8 = u.ReadEmbeddedPointer(new System.Func(u.ReadGuid), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public short Member0;
        public short Member2;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_5 CreateDefault()
        {
            return new Struct_5();
        }
        public Struct_5(short Member0, short Member2, System.Nullable Member8)
        {
            this.Member0 = Member0;
            this.Member2 = Member2;
            this.Member8 = Member8;
        }
    }
    public struct Struct_7 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Member0);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_22), Member0);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt32();
            Member8 = u.ReadEmbeddedPointer(new System.Func(u.Read_22), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_7 CreateDefault()
        {
            return new Struct_7();
        }
        public Struct_7(int Member0, sbyte[] Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    public struct Struct_8 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Member0);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_23), Member0);
            m.WriteEmbeddedPointer(Member10, new System.Action(m.Write_23), Member0);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt32();
            Member8 = u.ReadEmbeddedPointer(new System.Func(u.Read_23), true);
            Member10 = u.ReadEmbeddedPointer(new System.Func(u.Read_23), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member10;
        public static Struct_8 CreateDefault()
        {
            return new Struct_8();
        }
        public Struct_8(int Member0, int[] Member8, int[] Member10)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
            this.Member10 = Member10;
        }
    }
    public struct Struct_9 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt16(Member0);
            m.Write_9(Member8, ((ushort)(Member0)));
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt16();
            Member8 = u.Read_9();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public short Member0;
        public Union_10 Member8;
        public static Struct_9 CreateDefault()
        {
            return new Struct_9();
        }
        public Struct_9(short Member0, Union_10 Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    public struct Union_10 : NtApiDotNet.Ndr.Marshal.INdrNonEncapsulatedUnion
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            throw new System.NotImplementedException();
        }
        void NtApiDotNet.Ndr.Marshal.INdrNonEncapsulatedUnion.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m, long l)
        {
            Selector = ((ushort)(l));
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteUInt16(Selector);
            if ((Selector == 1))
            {
                m.WriteEmbeddedPointer(Arm_1, new System.Action(m.Write_10));
                goto done;
            }
            if ((Selector == 2))
            {
                m.WriteEmbeddedPointer(Arm_2, new System.Action(m.Write_12));
                goto done;
            }
            if ((Selector == 3))
            {
                m.WriteEmbeddedPointer(Arm_3, new System.Action(m.Write_12));
                goto done;
            }
            if ((Selector == 12))
            {
                m.WriteEmbeddedPointer(Arm_12, new System.Action(m.Write_12));
                goto done;
            }
            if ((Selector == 13))
            {
                m.WriteEmbeddedPointer(Arm_13, new System.Action(m.Write_13));
                goto done;
            }
            if ((Selector == 14))
            {
                m.WriteEmbeddedPointer(Arm_14, new System.Action(m.Write_13));
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_10");
        done:
            return;
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Selector = u.ReadUInt16();
            if ((Selector == 1))
            {
                Arm_1 = u.ReadEmbeddedPointer(new System.Func(u.Read_10), true);
                goto done;
            }
            if ((Selector == 2))
            {
                Arm_2 = u.ReadEmbeddedPointer(new System.Func(u.Read_12), true);
                goto done;
            }
            if ((Selector == 3))
            {
                Arm_3 = u.ReadEmbeddedPointer(new System.Func(u.Read_12), true);
                goto done;
            }
            if ((Selector == 12))
            {
                Arm_12 = u.ReadEmbeddedPointer(new System.Func(u.Read_12), true);
                goto done;
            }
            if ((Selector == 13))
            {
                Arm_13 = u.ReadEmbeddedPointer(new System.Func(u.Read_13), true);
                goto done;
            }
            if ((Selector == 14))
            {
                Arm_14 = u.ReadEmbeddedPointer(new System.Func(u.Read_13), true);
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_10");
        done:
            return;
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        private ushort Selector;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Arm_1;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Arm_2;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Arm_3;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Arm_12;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Arm_13;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Arm_14;
        public static Union_10 CreateDefault()
        {
            return new Union_10();
        }
        public Union_10(ushort Selector, System.Nullable Arm_1, System.Nullable Arm_2, System.Nullable Arm_3, System.Nullable Arm_12, System.Nullable Arm_13, System.Nullable Arm_14)
        {
            this.Selector = Selector;
            this.Arm_1 = Arm_1;
            this.Arm_2 = Arm_2;
            this.Arm_3 = Arm_3;
            this.Arm_12 = Arm_12;
            this.Arm_13 = Arm_13;
            this.Arm_14 = Arm_14;
        }
    }
    public struct Struct_11 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.Write_11(Member0);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.Read_11();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_12 Member0;
        public static Struct_11 CreateDefault()
        {
            return new Struct_11();
        }
        public Struct_11(Struct_12 Member0)
        {
            this.Member0 = Member0;
        }
    }
    public struct Struct_12 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteEmbeddedPointer(Member0, new System.Action(m.Write_0));
            m.WriteInt32(Member8);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadEmbeddedPointer(new System.Func(u.Read_0), true);
            Member8 = u.ReadInt32();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member0;
        public int Member8;
        public static Struct_12 CreateDefault()
        {
            return new Struct_12();
        }
        public Struct_12(System.Nullable Member0, int Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    public struct Struct_13 : NtApiDotNet.Ndr.Marshal.INdrConformantStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Member0);
            m.Write_24(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(Member8, "Member8"), Member0);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt32();
            Member8 = u.Read_24();
        }
        int NtApiDotNet.Ndr.Marshal.INdrConformantStructure.GetConformantDimensions()
        {
            return 1;
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public Struct_12[] Member8;
        public static Struct_13 CreateDefault()
        {
            Struct_13 ret = new Struct_13();
            ret.Member8 = new Struct_12[0];
            return ret;
        }
        public Struct_13(int Member0, Struct_12[] Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    public struct Struct_14 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt16(Member0);
            m.WriteInt16(Member2);
            m.WriteInt32(Member4);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_25), Member4);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt16();
            Member2 = u.ReadInt16();
            Member4 = u.ReadInt32();
            Member8 = u.ReadEmbeddedPointer(new System.Func(u.Read_25), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public short Member0;
        public short Member2;
        public int Member4;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_14 CreateDefault()
        {
            return new Struct_14();
        }
        public Struct_14(short Member0, short Member2, int Member4, Struct_15[] Member8)
        {
            this.Member0 = Member0;
            this.Member2 = Member2;
            this.Member4 = Member4;
            this.Member8 = Member8;
        }
    }
    public struct Struct_15 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.Write_15(Member0);
            m.WriteInt16(Member10);
            m.WriteInt16(Member12);
            m.WriteInt32(Member14);
            m.WriteInt32(Member18);
            m.WriteEmbeddedPointer(Member20, new System.Action(m.Write_26), Member18);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.Read_15();
            Member10 = u.ReadInt16();
            Member12 = u.ReadInt16();
            Member14 = u.ReadInt32();
            Member18 = u.ReadInt32();
            Member20 = u.ReadEmbeddedPointer(new System.Func(u.Read_26), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_16 Member0;
        public short Member10;
        public short Member12;
        public int Member14;
        public int Member18;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member20;
        public static Struct_15 CreateDefault()
        {
            return new Struct_15();
        }
        public Struct_15(Struct_16 Member0, short Member10, short Member12, int Member14, int Member18, Struct_17[] Member20)
        {
            this.Member0 = Member0;
            this.Member10 = Member10;
            this.Member12 = Member12;
            this.Member14 = Member14;
            this.Member18 = Member18;
            this.Member20 = Member20;
        }
    }
    public struct Struct_16 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Member0);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_27), Member0);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt32();
            Member8 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_16 CreateDefault()
        {
            return new Struct_16();
        }
        public Struct_16(int Member0, string Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    public struct Struct_17 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt16(Member0);
            m.Write_17(Member8, ((ushort)(Member0)));
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt16();
            Member8 = u.Read_17();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 8;
        }
        public short Member0;
        public Union_18 Member8;
        public static Struct_17 CreateDefault()
        {
            return new Struct_17();
        }
        public Struct_17(short Member0, Union_18 Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    public struct Union_18 : NtApiDotNet.Ndr.Marshal.INdrNonEncapsulatedUnion
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            throw new System.NotImplementedException();
        }
        void NtApiDotNet.Ndr.Marshal.INdrNonEncapsulatedUnion.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m, long l)
        {
            Selector = ((ushort)(l));
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteUInt16(Selector);
            if ((Selector == 1))
            {
                m.WriteInt64(Arm_1);
                goto done;
            }
            if ((Selector == 2))
            {
                m.WriteInt64(Arm_2);
                goto done;
            }
            if ((Selector == 6))
            {
                m.WriteInt64(Arm_6);
                goto done;
            }
            if ((Selector == 3))
            {
                m.Write_18(Arm_3);
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_18");
        done:
            return;
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Selector = u.ReadUInt16();
            if ((Selector == 1))
            {
                Arm_1 = u.ReadInt64();
                goto done;
            }
            if ((Selector == 2))
            {
                Arm_2 = u.ReadInt64();
                goto done;
            }
            if ((Selector == 6))
            {
                Arm_6 = u.ReadInt64();
                goto done;
            }
            if ((Selector == 3))
            {
                Arm_3 = u.Read_18();
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_18");
        done:
            return;
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 8;
        }
        private ushort Selector;
        public long Arm_1;
        public long Arm_2;
        public long Arm_6;
        public Struct_19 Arm_3;
        public static Union_18 CreateDefault()
        {
            return new Union_18();
        }
        public Union_18(ushort Selector, long Arm_1, long Arm_2, long Arm_6, Struct_19 Arm_3)
        {
            this.Selector = Selector;
            this.Arm_1 = Arm_1;
            this.Arm_2 = Arm_2;
            this.Arm_6 = Arm_6;
            this.Arm_3 = Arm_3;
        }
    }
    public struct Struct_19 : NtApiDotNet.Ndr.Marshal.INdrStructure
    {
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m)
        {
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Member0);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_28), Member0);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadInt32();
            Member8 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_19 CreateDefault()
        {
            return new Struct_19();
        }
        public Struct_19(int Member0, string Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7", 0, 0)
        {
        }
        private _Unmarshal_Helper SendReceive(int p, _Marshal_Helper m)
        {
            return new _Unmarshal_Helper(SendReceive(p, m.DataRepresentation, m.ToArray(), m.Handles));
        }
        public int s_AuthzrFreeContext(ref NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(0, m);
            p0 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int s_AuthzrInitializeContextFromSid(int p0, Struct_0 p1, System.Nullable p2, Struct_3 p3, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p4)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.Write_0(p1);
            m.WriteReferent(p2, new System.Action(m.Write_2));
            m.Write_3(p3);
            _Unmarshal_Helper u = SendReceive(1, m);
            p4 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int s_AuthzrInitializeCompoundContext(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, NtApiDotNet.Ndr.Marshal.NdrContextHandle p1, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteContextHandle(p1);
            _Unmarshal_Helper u = SendReceive(2, m);
            p2 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int s_AuthzrAccessCheck(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, int p1, Struct_4 p2, int p3, Struct_7[] p4, ref Struct_8 p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteInt32(p1);
            m.Write_4(p2);
            m.WriteInt32(p3);
            m.Write_29(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p4, "p4"), p3);
            m.Write_7(p5);
            _Unmarshal_Helper u = SendReceive(3, m);
            p5 = u.Read_7();
            return u.ReadInt32();
        }
        public int s_AuthzGetInformationFromContext(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, NtApiDotNet.Ndr.Marshal.NdrEnum16 p1, out System.Nullable p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteEnum16(p1);
            _Unmarshal_Helper u = SendReceive(4, m);
            p2 = u.ReadReferentValue(new System.Func(u.Read_8), true);
            return u.ReadInt32();
        }
        public int s_AuthzrModifyClaims(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, NtApiDotNet.Ndr.Marshal.NdrEnum16 p1, int p2, NtApiDotNet.Ndr.Marshal.NdrEnum16[] p3, System.Nullable p4)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteEnum16(p1);
            m.WriteInt32(p2);
            m.Write_30(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p3, "p3"), p2);
            m.WriteReferent(p4, new System.Action(m.Write_13));
            _Unmarshal_Helper u = SendReceive(5, m);
            return u.ReadInt32();
        }
        public int s_AuthzrModifySids(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, NtApiDotNet.Ndr.Marshal.NdrEnum16 p1, int p2, NtApiDotNet.Ndr.Marshal.NdrEnum16[] p3, System.Nullable p4)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteEnum16(p1);
            m.WriteInt32(p2);
            m.Write_30(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p3, "p3"), p2);
            m.WriteReferent(p4, new System.Action(m.Write_12));
            _Unmarshal_Helper u = SendReceive(6, m);
            return u.ReadInt32();
        }
    }
    #endregion
}