csharp/tyranid/WindowsRpcClients/Win10_1809/das.dll/a1d4eae7-39f8-4bca-8e72-832767f5082a_1.0.cs

a1d4eae7-39f8-4bca-8e72-832767f5082a_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\das.dll
// Interface ID: a1d4eae7-39f8-4bca-8e72-832767f5082a
// Interface Version: 1.0



namespace rpc_a1d4eae7_39f8_4bca_8e72_832767f5082a_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(Struct_2 p0)
        {
            WriteStruct(p0);
        }
        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(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_6(sbyte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_7(Struct_1[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_8(Struct_2[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_9(Struct_3[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_10(Struct_5[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_11(Struct_1[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_12(Struct_2[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_13(Struct_3[] p0, long p1)
        {
            WriteConformantStructArray(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 Struct_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 sbyte[] Read_5()
        {
            return ReadConformantArray();
        }
        public sbyte[] Read_6()
        {
            return ReadConformantArray();
        }
        public Struct_1[] Read_7()
        {
            return ReadConformantStructArray();
        }
        public Struct_2[] Read_8()
        {
            return ReadConformantStructArray();
        }
        public Struct_3[] Read_9()
        {
            return ReadConformantStructArray();
        }
        public Struct_5[] Read_10()
        {
            return ReadConformantStructArray();
        }
        public Struct_1[] Read_11()
        {
            return ReadConformantStructArray();
        }
        public Struct_2[] Read_12()
        {
            return ReadConformantStructArray();
        }
        public Struct_3[] Read_13()
        {
            return ReadConformantStructArray();
        }
    }
    #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);
        }
        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_1 CreateDefault()
        {
            return new Struct_1();
        }
        public Struct_1(System.Guid Member0, int Member10)
        {
            this.Member0 = Member0;
            this.Member10 = Member10;
        }
    }
    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.WriteInt32(Member0);
            m.Write_2(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_2();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public Struct_3 Member8;
        public static Struct_2 CreateDefault()
        {
            return new Struct_2();
        }
        public Struct_2(int Member0, Struct_3 Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    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.Write_3(Member0);
            m.WriteInt32(Member20);
            m.WriteInt32(Member24);
            m.WriteEmbeddedPointer(Member28, new System.Action(m.Write_5), 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_5), 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_3 CreateDefault()
        {
            return new Struct_3();
        }
        public Struct_3(Struct_4 Member0, int Member20, int Member24, sbyte[] Member28)
        {
            this.Member0 = Member0;
            this.Member20 = Member20;
            this.Member24 = Member24;
            this.Member28 = Member28;
        }
    }
    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_0(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_0();
            Member14 = u.ReadInt32();
            Member18 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_1 Member0;
        public int Member14;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member18;
        public static Struct_4 CreateDefault()
        {
            return new Struct_4();
        }
        public Struct_4(Struct_1 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.Write_0(Member0);
            m.WriteInt32(Member14);
            m.WriteInt32(Member18);
            m.WriteEmbeddedPointer(Member20, new System.Action(m.Write_6), 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_0();
            Member14 = u.ReadInt32();
            Member18 = u.ReadInt32();
            Member20 = u.ReadEmbeddedPointer(new System.Func(u.Read_6), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_1 Member0;
        public int Member14;
        public int Member18;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member20;
        public static Struct_5 CreateDefault()
        {
            return new Struct_5();
        }
        public Struct_5(Struct_1 Member0, int Member14, int Member18, sbyte[] Member20)
        {
            this.Member0 = Member0;
            this.Member14 = Member14;
            this.Member18 = Member18;
            this.Member20 = Member20;
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("a1d4eae7-39f8-4bca-8e72-832767f5082a", 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 DasCreateInboundContext(System.Guid p0, out NtApiDotNet.Ndr.Marshal.NdrContextHandle p1)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteGuid(p0);
            _Unmarshal_Helper u = SendReceive(0, m);
            p1 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasttartListenForInboundastociations(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, int p1, int p2, Struct_1[] p3, int p4, Struct_2[] p5, out long p6, out long p7)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            m.WriteInt32(p1);
            m.WriteInt32(p2);
            m.WriteReferent(p3, new System.Action(m.Write_7), p2);
            m.WriteInt32(p4);
            m.WriteReferent(p5, new System.Action(m.Write_8), p4);
            _Unmarshal_Helper u = SendReceive(1, m);
            p6 = u.ReadInt64();
            p7 = u.ReadInt64();
            return u.ReadInt32();
        }
        public int DasGetInboundastociationResult(NtApiDotNet.Ndr.Marshal.NdrContextHandle p0, out string p1, out int p2, out Struct_3[] p3, out int p4, out int p5, out Struct_5[] p6, out int p7, out int p8)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(2, m);
            p1 = u.ReadReferent(new System.Func(u.ReadConformantVaryingString), false);
            p2 = u.ReadInt32();
            p3 = u.ReadReferent(new System.Func(u.Read_9), false);
            p4 = u.ReadInt32();
            p5 = u.ReadInt32();
            p6 = u.ReadReferent(new System.Func(u.Read_10), false);
            p7 = u.ReadInt32();
            p8 = u.ReadInt32();
            return u.ReadInt32();
        }
        public int DasCloseInboundContext(ref NtApiDotNet.Ndr.Marshal.NdrContextHandle p0)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteContextHandle(p0);
            _Unmarshal_Helper u = SendReceive(3, m);
            p0 = u.ReadContextHandle();
            return u.ReadInt32();
        }
        public int DasRegisterForInboundastociationsAppActivation(System.Guid p0, int p1, int p2, Struct_1[] p3, int p4, Struct_2[] p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteGuid(p0);
            m.WriteInt32(p1);
            m.WriteInt32(p2);
            m.WriteReferent(p3, new System.Action(m.Write_11), p2);
            m.WriteInt32(p4);
            m.WriteReferent(p5, new System.Action(m.Write_12), p4);
            _Unmarshal_Helper u = SendReceive(4, m);
            return u.ReadInt32();
        }
        public int DasGetInboundastociationResultForAppActivation(string p0, string p1, out int p2, out Struct_3[] p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p0, "p0"));
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p1, "p1"));
            _Unmarshal_Helper u = SendReceive(5, m);
            p2 = u.ReadInt32();
            p3 = u.ReadReferent(new System.Func(u.Read_13), false);
            return u.ReadInt32();
        }
    }
    #endregion
}