csharp/tyranid/WindowsRpcClients/Win10_1809/dashost.exe/eeee008d-5c99-4e4b-861b-547a26e8abd0_1.0.cs

eeee008d-5c99-4e4b-861b-547a26e8abd0_1.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\dasHost.exe
// Interface ID: eeee008d-5c99-4e4b-861b-547a26e8abd0
// Interface Version: 1.0



namespace rpc_eeee008d_5c99_4e4b_861b_547a26e8abd0_1_0
{
    
    #region Marshal Helpers
    internal clast _Marshal_Helper : NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer
    {
        public void Write_0(Struct_1 p0)
        {
            WriteStruct(p0);
        }
        public void Write_1(Union_2 p0, long p1)
        {
            WriteUnion(p0, p1);
        }
        public void Write_2(Struct_3 p0)
        {
            WriteStruct(p0);
        }
        public void Write_3(Struct_4 p0)
        {
            WriteStruct(p0);
        }
        public void Write_4(Struct_5 p0)
        {
            WriteStruct(p0);
        }
        public void Write_5(Struct_6 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(Struct_10 p0)
        {
            WriteStruct(p0);
        }
        public void Write_10(Struct_11 p0)
        {
            WriteStruct(p0);
        }
        public void Write_11(Struct_4[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_12(Struct_6[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_13(Struct_8[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_14(char[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_15(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_16(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_17(string[] p0, long p1)
        {
            WriteConformantStringArray(p0, new System.Action(this.WriteTerminatedString), p1);
        }
        public void Write_18(string[] p0, long p1)
        {
            WriteConformantStringArray(p0, new System.Action(this.WriteTerminatedString), p1);
        }
        public void Write_19(Struct_7[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_20(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_21(Struct_9[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_22(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_23(Struct_7[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_24(Struct_5[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_25(Struct_5[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_26(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_27(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_28(Struct_7[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_29(Struct_7[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_30(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_31(Struct_7[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_32(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, 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_1 Read_0()
        {
            return ReadStruct();
        }
        public Union_2 Read_1()
        {
            return ReadStruct();
        }
        public Struct_3 Read_2()
        {
            return ReadStruct();
        }
        public Struct_4 Read_3()
        {
            return ReadStruct();
        }
        public Struct_5 Read_4()
        {
            return ReadStruct();
        }
        public Struct_6 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 Struct_10 Read_9()
        {
            return ReadStruct();
        }
        public Struct_11 Read_10()
        {
            return ReadStruct();
        }
        public Struct_4[] Read_11()
        {
            return ReadConformantStructArray();
        }
        public Struct_6[] Read_12()
        {
            return ReadConformantStructArray();
        }
        public Struct_8[] Read_13()
        {
            return ReadConformantStructArray();
        }
        public char[] Read_14()
        {
            return ReadConformantArray();
        }
        public sbyte[] Read_15()
        {
            return ReadConformantArray();
        }
        public sbyte[] Read_16()
        {
            return ReadConformantArray();
        }
        public string[] Read_17()
        {
            return ReadConformantStringArray(new System.Func(this.ReadConformantVaryingString));
        }
        public string[] Read_18()
        {
            return ReadConformantStringArray(new System.Func(this.ReadConformantVaryingString));
        }
        public Struct_7[] Read_19()
        {
            return ReadConformantStructArray();
        }
        public sbyte[] Read_20()
        {
            return ReadConformantArray();
        }
        public Struct_9[] Read_21()
        {
            return ReadConformantStructArray();
        }
        public sbyte[] Read_22()
        {
            return ReadConformantArray();
        }
        public Struct_7[] Read_23()
        {
            return ReadConformantStructArray();
        }
        public Struct_5[] Read_24()
        {
            return ReadConformantStructArray();
        }
        public Struct_5[] Read_25()
        {
            return ReadConformantStructArray();
        }
        public sbyte[] Read_26()
        {
            return ReadConformantArray();
        }
        public sbyte[] Read_27()
        {
            return ReadConformantArray();
        }
        public Struct_7[] Read_28()
        {
            return ReadConformantStructArray();
        }
        public Struct_7[] Read_29()
        {
            return ReadConformantStructArray();
        }
        public sbyte[] Read_30()
        {
            return ReadConformantArray();
        }
        public Struct_7[] Read_31()
        {
            return ReadConformantStructArray();
        }
        public sbyte[] Read_32()
        {
            return ReadConformantArray();
        }
    }
    #endregion
    #region Complex Types
    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.WriteGuid(Member0);
            m.WriteInt32(Member10);
            m.WriteInt32(Member14);
            m.Write_1(Member18, Member14);
            m.WriteInt32(Member28);
            m.Write_2(Member30);
            m.WriteInt32(Member40);
            m.WriteEmbeddedPointer(Member48, new System.Action(m.Write_11), Member40);
            m.WriteInt32(Member50);
            m.WriteEmbeddedPointer(Member58, new System.Action(m.Write_12), Member50);
            m.WriteInt32(Member60);
            m.WriteEmbeddedPointer(Member68, new System.Action(m.Write_13), Member60);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadGuid();
            Member10 = u.ReadInt32();
            Member14 = u.ReadInt32();
            Member18 = u.Read_1();
            Member28 = u.ReadInt32();
            Member30 = u.Read_2();
            Member40 = u.ReadInt32();
            Member48 = u.ReadEmbeddedPointer(new System.Func(u.Read_11), false);
            Member50 = u.ReadInt32();
            Member58 = u.ReadEmbeddedPointer(new System.Func(u.Read_12), false);
            Member60 = u.ReadInt32();
            Member68 = u.ReadEmbeddedPointer(new System.Func(u.Read_13), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public System.Guid Member0;
        public int Member10;
        public int Member14;
        public Union_2 Member18;
        public int Member28;
        public Struct_3 Member30;
        public int Member40;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member48;
        public int Member50;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member58;
        public int Member60;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member68;
        public static Struct_1 CreateDefault()
        {
            return new Struct_1();
        }
        public Struct_1(System.Guid Member0, int Member10, int Member14, Union_2 Member18, int Member28, Struct_3 Member30, int Member40, Struct_4[] Member48, int Member50, Struct_6[] Member58, int Member60, Struct_8[] Member68)
        {
            this.Member0 = Member0;
            this.Member10 = Member10;
            this.Member14 = Member14;
            this.Member18 = Member18;
            this.Member28 = Member28;
            this.Member30 = Member30;
            this.Member40 = Member40;
            this.Member48 = Member48;
            this.Member50 = Member50;
            this.Member58 = Member58;
            this.Member60 = Member60;
            this.Member68 = Member68;
        }
    }
    public struct Union_2 : 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 = ((int)(l));
            Marshal(((_Marshal_Helper)(m)));
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Selector);
            if ((Selector == 1))
            {
                m.WriteEmbeddedPointer(Arm_1, new System.Action(m.WriteTerminatedString));
                goto done;
            }
            if ((Selector == 2))
            {
                m.Write_2(Arm_2);
                goto done;
            }
            if ((Selector == 0))
            {
                m.WriteSByte(Arm_0);
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_2");
        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.ReadInt32();
            if ((Selector == 1))
            {
                Arm_1 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
                goto done;
            }
            if ((Selector == 2))
            {
                Arm_2 = u.Read_2();
                goto done;
            }
            if ((Selector == 0))
            {
                Arm_0 = u.ReadSByte();
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_2");
        done:
            return;
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        private int Selector;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Arm_1;
        public Struct_3 Arm_2;
        public sbyte Arm_0;
        public static Union_2 CreateDefault()
        {
            return new Union_2();
        }
        public Union_2(int Selector, string Arm_1, Struct_3 Arm_2, sbyte Arm_0)
        {
            this.Selector = Selector;
            this.Arm_1 = Arm_1;
            this.Arm_2 = Arm_2;
            this.Arm_0 = Arm_0;
        }
    }
    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.WriteEmbeddedPointer(Member8, new System.Action(m.Write_14), 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_14), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_3 CreateDefault()
        {
            return new Struct_3();
        }
        public Struct_3(int Member0, char[] Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    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.Write_4(Member0);
            m.WriteInt32(Member14);
            m.WriteEmbeddedPointer(Member18, new System.Action(m.WriteTerminatedString));
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.Read_4();
            Member14 = u.ReadInt32();
            Member18 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_5 Member0;
        public int Member14;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member18;
        public static Struct_4 CreateDefault()
        {
            return new Struct_4();
        }
        public Struct_4(Struct_5 Member0, int Member14, string Member18)
        {
            this.Member0 = Member0;
            this.Member14 = Member14;
            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.WriteGuid(Member0);
            m.WriteInt32(Member10);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadGuid();
            Member10 = u.ReadInt32();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public System.Guid Member0;
        public int Member10;
        public static Struct_5 CreateDefault()
        {
            return new Struct_5();
        }
        public Struct_5(System.Guid Member0, int Member10)
        {
            this.Member0 = Member0;
            this.Member10 = Member10;
        }
    }
    public struct Struct_6 : 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.Write_6(Member8);
        }
        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_6();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public Struct_7 Member8;
        public static Struct_6 CreateDefault()
        {
            return new Struct_6();
        }
        public Struct_6(int Member0, Struct_7 Member8)
        {
            this.Member0 = Member0;
            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.Write_3(Member0);
            m.WriteInt32(Member20);
            m.WriteInt32(Member24);
            m.WriteEmbeddedPointer(Member28, new System.Action(m.Write_15), Member24);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.Read_3();
            Member20 = u.ReadInt32();
            Member24 = u.ReadInt32();
            Member28 = u.ReadEmbeddedPointer(new System.Func(u.Read_15), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_4 Member0;
        public int Member20;
        public int Member24;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member28;
        public static Struct_7 CreateDefault()
        {
            return new Struct_7();
        }
        public Struct_7(Struct_4 Member0, int Member20, int Member24, sbyte[] Member28)
        {
            this.Member0 = Member0;
            this.Member20 = Member20;
            this.Member24 = Member24;
            this.Member28 = Member28;
        }
    }
    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.Write_4(Member0);
            m.WriteInt32(Member14);
            m.WriteInt32(Member18);
            m.WriteEmbeddedPointer(Member20, new System.Action(m.Write_16), 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_4();
            Member14 = u.ReadInt32();
            Member18 = u.ReadInt32();
            Member20 = u.ReadEmbeddedPointer(new System.Func(u.Read_16), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_5 Member0;
        public int Member14;
        public int Member18;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member20;
        public static Struct_8 CreateDefault()
        {
            return new Struct_8();
        }
        public Struct_8(Struct_5 Member0, int Member14, int Member18, sbyte[] Member20)
        {
            this.Member0 = Member0;
            this.Member14 = Member14;
            this.Member18 = Member18;
            this.Member20 = Member20;
        }
    }
    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.Write_4(Member0);
            m.WriteInt32(Member14);
            m.WriteInt32(Member18);
            m.WriteEmbeddedPointer(Member20, new System.Action(m.Write_16), 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_4();
            Member14 = u.ReadInt32();
            Member18 = u.ReadInt32();
            Member20 = u.ReadEmbeddedPointer(new System.Func(u.Read_16), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_5 Member0;
        public int Member14;
        public int Member18;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member20;
        public static Struct_9 CreateDefault()
        {
            return new Struct_9();
        }
        public Struct_9(Struct_5 Member0, int Member14, int Member18, sbyte[] Member20)
        {
            this.Member0 = Member0;
            this.Member14 = Member14;
            this.Member18 = Member18;
            this.Member20 = Member20;
        }
    }
    public struct Struct_10 : 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.WriteTerminatedString));
            m.WriteInt32(Member10);
            m.WriteEmbeddedPointer(Member18, new System.Action(m.Write_17), Member10);
            m.WriteInt32(Member20);
            m.WriteEmbeddedPointer(Member28, new System.Action(m.Write_18), Member20);
            m.WriteEmbeddedPointer(Member30, new System.Action(m.WriteGuid));
            m.WriteInt32(Member38);
            m.WriteEmbeddedPointer(Member40, new System.Action(m.WriteTerminatedString));
            m.WriteEmbeddedPointer(Member48, new System.Action(m.WriteTerminatedString));
            m.WriteEmbeddedPointer(Member50, new System.Action(m.WriteTerminatedString));
        }
        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), false);
            Member10 = u.ReadInt32();
            Member18 = u.ReadEmbeddedPointer(new System.Func(u.Read_17), false);
            Member20 = u.ReadInt32();
            Member28 = u.ReadEmbeddedPointer(new System.Func(u.Read_18), false);
            Member30 = u.ReadEmbeddedPointer(new System.Func(u.ReadGuid), false);
            Member38 = u.ReadInt32();
            Member40 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
            Member48 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
            Member50 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
        }
        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 int Member20;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member28;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member30;
        public int Member38;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member40;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member48;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member50;
        public static Struct_10 CreateDefault()
        {
            return new Struct_10();
        }
        public Struct_10(int Member0, string Member8, int Member10, string[] Member18, int Member20, string[] Member28, System.Nullable Member30, int Member38, string Member40, string Member48, string Member50)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
            this.Member10 = Member10;
            this.Member18 = Member18;
            this.Member20 = Member20;
            this.Member28 = Member28;
            this.Member30 = Member30;
            this.Member38 = Member38;
            this.Member40 = Member40;
            this.Member48 = Member48;
            this.Member50 = Member50;
        }
    }
    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.WriteInt32(Member0);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_19), Member0);
            m.WriteGuid(Member10);
            m.WriteEmbeddedPointer(Member20, new System.Action(m.WriteTerminatedString));
            m.WriteEmbeddedPointer(Member28, new System.Action(m.WriteTerminatedString));
            m.WriteEmbeddedPointer(Member30, new System.Action(m.WriteTerminatedString));
            m.WriteInt32(Member38);
        }
        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_19), false);
            Member10 = u.ReadGuid();
            Member20 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
            Member28 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
            Member30 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
            Member38 = u.ReadInt32();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public System.Guid Member10;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member20;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member28;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member30;
        public int Member38;
        public static Struct_11 CreateDefault()
        {
            return new Struct_11();
        }
        public Struct_11(int Member0, Struct_7[] Member8, System.Guid Member10, string Member20, string Member28, string Member30, int Member38)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
            this.Member10 = Member10;
            this.Member20 = Member20;
            this.Member28 = Member28;
            this.Member30 = Member30;
            this.Member38 = Member38;
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("eeee008d-5c99-4e4b-861b-547a26e8abd0", 1, 0)
        {
        }
        private _Unmarshal_Helper SendReceive(int p, _Marshal_Helper m)
        {
            return new _Unmarshal_Helper(SendReceive(p, m.DataRepresentation, m.ToArray(), m.Handles));
        }
        public int DasHostLoadProvider(string p0, int p1)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p0, "p0"));
            m.WriteInt32(p1);
            _Unmarshal_Helper u = SendReceive(0, m);
            return u.ReadInt32();
        }
        public int DasHostSetDasProcessHandle(long p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt64(p0);
            _Unmarshal_Helper u = SendReceive(1, m);
            return u.ReadInt32();
        }
        public int DasHostUnloadProvider(string p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p0, "p0"));
            _Unmarshal_Helper u = SendReceive(2, m);
            return u.ReadInt32();
        }
        public void DasHostShutdown()
        {
            _Marshal_Helper m = new _Marshal_Helper();
            _Unmarshal_Helper u = SendReceive(3, m);
        }
        public int DasHostCreateProviderQuery(System.Guid p0, NtApiDotNet.Ndr.Marshal.NdrEnum16 p1, string p2, Struct_1 p3, long p4, long p5, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p6)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteGuid(p0);
            m.WriteEnum16(p1);
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p2, "p2"));
            m.Write_0(p3);
            m.WriteInt64(p4);
            m.WriteInt64(p5);
            _Unmarshal_Helper u = SendReceive(4, m);
            p6 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasHostCloseQuery(ref NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(5, m);
            p0 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasHostProviderQueryGetResult(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, out int p1, out sbyte[] p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(6, m);
            p1 = u.ReadInt32();
            p2 = u.ReadReferent(new System.Func(u.Read_20), false);
            return u.ReadInt32();
        }
        public int DasHostCreateastociationContext(System.Guid p0, string p1, int p2, long p3, long p4, int p5, Struct_9[] p6, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p7)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteGuid(p0);
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p1, "p1"));
            m.WriteInt32(p2);
            m.WriteInt64(p3);
            m.WriteInt64(p4);
            m.WriteInt32(p5);
            m.WriteReferent(p6, new System.Action(m.Write_21), p5);
            _Unmarshal_Helper u = SendReceive(7, m);
            p7 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasHostCreateastociationContextFromOobBlob(System.Guid p0, System.Guid p1, int p2, sbyte[] p3, long p4, long p5, int p6, out string p7, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p8, out int p9, out Struct_7[] p10)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteGuid(p0);
            m.WriteGuid(p1);
            m.WriteInt32(p2);
            m.Write_22(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p3, "p3"), p2);
            m.WriteInt64(p4);
            m.WriteInt64(p5);
            m.WriteInt32(p6);
            _Unmarshal_Helper u = SendReceive(8, m);
            p7 = u.ReadReferent(new System.Func(u.ReadConformantVaryingString), false);
            p8 = u.ReadContextHandle();
            p9 = u.ReadInt32();
            p10 = u.ReadReferent(new System.Func(u.Read_23), false);
            return u.ReadInt32();
        }
        // async
        public int DasHostStartEnumCeremonies(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, out int p1, out Struct_5[] p2, int p3, Struct_5[] p4)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteInt32(p3);
            m.WriteReferent(p4, new System.Action(m.Write_25), p3);
            _Unmarshal_Helper u = SendReceive(9, m);
            p1 = u.ReadInt32();
            p2 = u.ReadReferent(new System.Func(u.Read_24), false);
            return u.ReadInt32();
        }
        public int DasHostSelectCeremony(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, System.Guid p1)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteGuid(p1);
            _Unmarshal_Helper u = SendReceive(10, m);
            return u.ReadInt32();
        }
        // async
        public int DasHostStartReadCeremonyData(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, out int p1, out sbyte[] p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(11, m);
            p1 = u.ReadInt32();
            p2 = u.ReadReferent(new System.Func(u.Read_26), false);
            return u.ReadInt32();
        }
        // async
        public int DasHostStartWriteCeremonyData(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, int p1, sbyte[] p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteInt32(p1);
            m.Write_27(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p2, "p2"), p1);
            _Unmarshal_Helper u = SendReceive(12, m);
            return u.ReadInt32();
        }
        // async
        public int DasHostStartFinalize(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, out int p1, out Struct_7[] p2, out int p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(13, m);
            p1 = u.ReadInt32();
            p2 = u.ReadReferent(new System.Func(u.Read_28), false);
            p3 = u.ReadInt32();
            return u.ReadInt32();
        }
        // async
        public int DasHostDeviceStatusNotification(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, out NtApiDotNet.Ndr.Marshal.NdrEnum16 p1)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(14, m);
            p1 = u.ReadEnum16();
            return u.ReadInt32();
        }
        // async
        public int DasHostStartRemoveastociation(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(15, m);
            return u.ReadInt32();
        }
        public int DasHostCloseastociationContext(ref NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(16, m);
            p0 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasHostCreateDevnodeManagementContext(string p0, out long p1, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p0, "p0"));
            _Unmarshal_Helper u = SendReceive(17, m);
            p1 = u.ReadInt64();
            p2 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasHostStartDevnodeManagement(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(18, m);
            return u.ReadInt32();
        }
        public int DasHostEndDevnodeManagement(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(19, m);
            return u.ReadInt32();
        }
        public int DasHostPickupDevnodeManagementOperation(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, out NtApiDotNet.Ndr.Marshal.NdrEnum16 p1, out int p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(20, m);
            p1 = u.ReadEnum16();
            p2 = u.ReadInt32();
            return u.ReadInt32();
        }
        public int DasHostGetDevnodeFactoryOperationInfo(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, int p1, out string p2, out System.Nullable p3, out int p4, out Struct_7[] p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteInt32(p1);
            _Unmarshal_Helper u = SendReceive(21, m);
            p2 = u.ReadReferent(new System.Func(u.ReadConformantVaryingString), false);
            p3 = u.ReadReferentValue(new System.Func(u.Read_9), false);
            p4 = u.ReadInt32();
            p5 = u.ReadReferent(new System.Func(u.Read_29), false);
            return u.ReadInt32();
        }
        public int DasHostCompleteDevnodeFactoryOperation(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, int p1, string p2, int p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteInt32(p1);
            m.WriteReferent(p2, new System.Action(m.WriteTerminatedString));
            m.WriteInt32(p3);
            _Unmarshal_Helper u = SendReceive(22, m);
            return u.ReadInt32();
        }
        public int DasHostGetDevnodeOperationInfo(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, int p1, out string p2, out System.Nullable p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteInt32(p1);
            _Unmarshal_Helper u = SendReceive(23, m);
            p2 = u.ReadReferent(new System.Func(u.ReadConformantVaryingString), false);
            p3 = u.ReadReferentValue(new System.Func(u.Read_10), false);
            return u.ReadInt32();
        }
        public int DasHostCompleteDevnodeOperation(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, int p1, string p2, int p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteInt32(p1);
            m.WriteReferent(p2, new System.Action(m.WriteTerminatedString));
            m.WriteInt32(p3);
            _Unmarshal_Helper u = SendReceive(24, m);
            return u.ReadInt32();
        }
        public int DasHostCloseDevnodeManagementContext(ref NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(25, m);
            p0 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasHostCreateChallengeContext(System.Guid p0, string p1, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteGuid(p0);
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p1, "p1"));
            _Unmarshal_Helper u = SendReceive(26, m);
            p2 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        // async
        public int DasHostStartChallengeDevicePresence(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(27, m);
            return u.ReadInt32();
        }
        public int DasHostCloseChallengeContext(ref NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(28, m);
            p0 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasHostCreateImportExportContext(System.Guid p0, long p1, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteGuid(p0);
            m.WriteInt64(p1);
            _Unmarshal_Helper u = SendReceive(29, m);
            p2 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        // async
        public int DasHostStartImport(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, string p1, int p2, sbyte[] p3, out int p4, out Struct_7[] p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p1, "p1"));
            m.WriteInt32(p2);
            m.Write_30(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p3, "p3"), p2);
            _Unmarshal_Helper u = SendReceive(30, m);
            p4 = u.ReadInt32();
            p5 = u.ReadReferent(new System.Func(u.Read_31), false);
            return u.ReadInt32();
        }
        // async
        public int DasHostStartExport(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, string p1, out int p2, out sbyte[] p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p1, "p1"));
            _Unmarshal_Helper u = SendReceive(31, m);
            p2 = u.ReadInt32();
            p3 = u.ReadReferent(new System.Func(u.Read_32), false);
            return u.ReadInt32();
        }
        public int DasHostCloseImportExportContext(ref NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(32, m);
            p0 = u.ReadContextHandle();
            return u.ReadInt32();
        }
    }
    #endregion
}