csharp/tyranid/WindowsRpcClients/Win10_1809/appventsubsystemcontroller.dll/8c7fbdb0-8513-44f9-a8b1-1a3b49322bf4_1.0.cs

8c7fbdb0-8513-44f9-a8b1-1a3b49322bf4_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: 8c7fbdb0-8513-44f9-a8b1-1a3b49322bf4
// Interface Version: 1.0



namespace rpc_8c7fbdb0_8513_44f9_a8b1_1a3b49322bf4_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_3[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_5(Struct_4[] p0, long p1)
        {
            WriteConformantStructArray(p0, p1);
        }
        public void Write_6(char[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_7(Struct_1[] 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_3[] Read_4()
        {
            return ReadConformantStructArray();
        }
        public Struct_4[] Read_5()
        {
            return ReadConformantStructArray();
        }
        public char[] Read_6()
        {
            return ReadConformantArray();
        }
        public Struct_1[] Read_7()
        {
            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.WriteGuid(Member10);
            m.WriteInt32(Member20);
            m.WriteInt32(Member24);
            m.Write_1(Member28);
            m.WriteInt32(Member38);
            m.WriteEmbeddedPointer(Member40, new System.Action(m.Write_4), Member38);
            m.WriteInt32(Member48);
            m.WriteEmbeddedPointer(Member50, new System.Action(m.Write_5), Member48);
        }
        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.ReadGuid();
            Member20 = u.ReadInt32();
            Member24 = u.ReadInt32();
            Member28 = u.Read_1();
            Member38 = u.ReadInt32();
            Member40 = u.ReadEmbeddedPointer(new System.Func(u.Read_4), true);
            Member48 = u.ReadInt32();
            Member50 = u.ReadEmbeddedPointer(new System.Func(u.Read_5), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public System.Guid Member0;
        public System.Guid Member10;
        public int Member20;
        public int Member24;
        public Struct_2 Member28;
        public int Member38;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member40;
        public int Member48;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member50;
        public static Struct_1 CreateDefault()
        {
            return new Struct_1();
        }
        public Struct_1(System.Guid Member0, System.Guid Member10, int Member20, int Member24, Struct_2 Member28, int Member38, Struct_3[] Member40, int Member48, Struct_4[] Member50)
        {
            this.Member0 = Member0;
            this.Member10 = Member10;
            this.Member20 = Member20;
            this.Member24 = Member24;
            this.Member28 = Member28;
            this.Member38 = Member38;
            this.Member40 = Member40;
            this.Member48 = Member48;
            this.Member50 = Member50;
        }
    }
    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_6), 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_6), 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.WriteInt32(Member0);
            m.WriteInt32(Member4);
            m.Write_1(Member8);
            m.Write_1(Member18);
            m.Write_1(Member28);
            m.Write_1(Member38);
            m.Write_1(Member48);
            m.Write_1(Member58);
        }
        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();
            Member8 = u.Read_1();
            Member18 = u.Read_1();
            Member28 = u.Read_1();
            Member38 = u.Read_1();
            Member48 = u.Read_1();
            Member58 = u.Read_1();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public int Member4;
        public Struct_2 Member8;
        public Struct_2 Member18;
        public Struct_2 Member28;
        public Struct_2 Member38;
        public Struct_2 Member48;
        public Struct_2 Member58;
        public static Struct_3 CreateDefault()
        {
            return new Struct_3();
        }
        public Struct_3(int Member0, int Member4, Struct_2 Member8, Struct_2 Member18, Struct_2 Member28, Struct_2 Member38, Struct_2 Member48, Struct_2 Member58)
        {
            this.Member0 = Member0;
            this.Member4 = Member4;
            this.Member8 = Member8;
            this.Member18 = Member18;
            this.Member28 = Member28;
            this.Member38 = Member38;
            this.Member48 = Member48;
            this.Member58 = Member58;
        }
    }
    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.Write_1(Member8);
            m.Write_1(Member18);
        }
        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_1();
            Member18 = u.Read_1();
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public Struct_2 Member8;
        public Struct_2 Member18;
        public static Struct_4 CreateDefault()
        {
            return new Struct_4();
        }
        public Struct_4(int Member0, Struct_2 Member8, Struct_2 Member18)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
            this.Member18 = Member18;
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("8c7fbdb0-8513-44f9-a8b1-1a3b49322bf4", 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 vfs_server_GetConfiguration(int p0, System.Guid p1, System.Guid p2, out int p3, out Struct_1[] p4)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            _Unmarshal_Helper u = SendReceive(0, m);
            p3 = u.ReadInt32();
            p4 = u.ReadReferent(new System.Func(u.Read_7), false);
            return u.ReadInt32();
        }
    }
    #endregion
}