csharp/tyranid/WindowsRpcClients/Win10_1809/appventsubsystemcontroller.dll/66055171-882c-4625-8fd7-cc7c30e2b226_1.0.cs

66055171-882c-4625-8fd7-cc7c30e2b226_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\AppVEntSubsystemController.dll
// Interface ID: 66055171-882c-4625-8fd7-cc7c30e2b226
// Interface Version: 1.0



namespace rpc_66055171_882c_4625_8fd7_cc7c30e2b226_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(char[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_5(Struct_4[] 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 char[] Read_4()
        {
            return ReadConformantArray();
        }
        public Struct_4[] Read_5()
        {
            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.WriteInt32(Member0);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_4), 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_4), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_1 CreateDefault()
        {
            Struct_1 ret = new Struct_1();
            ret.Member8 = new char[0];
            return ret;
        }
        public Struct_1(int Member0, char[] Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    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.WriteEmbeddedPointer(Member8, new System.Action(m.Write_4), 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_4), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_2 CreateDefault()
        {
            return new Struct_2();
        }
        public Struct_2(int Member0, char[] 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.WriteSByte(Member0);
            m.Write_1(Member8);
            m.WriteInt32(Member18);
            m.WriteEmbeddedPointer(Member20, new System.Action(m.Write_5), Member18);
        }
        void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u)
        {
            Unmarshal(((_Unmarshal_Helper)(u)));
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Member0 = u.ReadSByte();
            Member8 = u.Read_1();
            Member18 = u.ReadInt32();
            Member20 = u.ReadEmbeddedPointer(new System.Func(u.Read_5), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public sbyte Member0;
        public Struct_2 Member8;
        public int Member18;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member20;
        public static Struct_3 CreateDefault()
        {
            return new Struct_3();
        }
        public Struct_3(sbyte Member0, Struct_2 Member8, int Member18, Struct_4[] Member20)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
            this.Member18 = Member18;
            this.Member20 = Member20;
        }
    }
    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.Write_0(Member10);
            m.Write_0(Member20);
            m.Write_0(Member30);
            m.Write_0(Member40);
            m.Write_0(Member50);
        }
        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();
            Member10 = u.Read_0();
            Member20 = u.Read_0();
            Member30 = u.Read_0();
            Member40 = u.Read_0();
            Member50 = u.Read_0();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public Struct_1 Member0;
        public Struct_1 Member10;
        public Struct_1 Member20;
        public Struct_1 Member30;
        public Struct_1 Member40;
        public Struct_1 Member50;
        public static Struct_4 CreateDefault()
        {
            return new Struct_4();
        }
        public Struct_4(Struct_1 Member0, Struct_1 Member10, Struct_1 Member20, Struct_1 Member30, Struct_1 Member40, Struct_1 Member50)
        {
            this.Member0 = Member0;
            this.Member10 = Member10;
            this.Member20 = Member20;
            this.Member30 = Member30;
            this.Member40 = Member40;
            this.Member50 = Member50;
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("66055171-882c-4625-8fd7-cc7c30e2b226", 1, 0)
        {
        }
        private _Unmarshal_Helper SendReceive(int p, _Marshal_Helper m)
        {
            return new _Unmarshal_Helper(SendReceive(p, m.DataRepresentation, m.ToArray(), m.Handles));
        }
        public void vshell_server_get_vshell_process_data(int p0, System.Guid p1, System.Guid p2, Struct_1 p3, Struct_2 p4, out Struct_3 p5, out long p6)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.Write_0(p3);
            m.Write_1(p4);
            _Unmarshal_Helper u = SendReceive(0, m);
            p5 = u.Read_2();
            p6 = u.ReadInt64();
        }
    }
    #endregion
}