csharp/tyranid/WindowsRpcClients/Win10_1809/appventsubsystemcontroller.dll/44e10347-37a0-494c-871c-fb90f7145742_1.0.cs

44e10347-37a0-494c-871c-fb90f7145742_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: 44e10347-37a0-494c-871c-fb90f7145742
// Interface Version: 1.0



namespace rpc_44e10347_37a0_494c_871c_fb90f7145742_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(char[] 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 Struct_2 Read_1()
        {
            return ReadStruct();
        }
        public char[] Read_2()
        {
            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.WriteInt32(Member0);
            m.WriteEmbeddedPointer(Member8, new System.Action(m.Write_2), 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_2), true);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_1 CreateDefault()
        {
            return new Struct_1();
        }
        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_2), 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_2), false);
        }
        int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment()
        {
            return 4;
        }
        public int Member0;
        public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member8;
        public static Struct_2 CreateDefault()
        {
            Struct_2 ret = new Struct_2();
            ret.Member8 = new char[0];
            return ret;
        }
        public Struct_2(int Member0, char[] Member8)
        {
            this.Member0 = Member0;
            this.Member8 = Member8;
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("44e10347-37a0-494c-871c-fb90f7145742", 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 s_vcom_server_GetVComPolicies(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.Read_0();
            return u.ReadInt32();
        }
        public int s_vcom_server_RegisterServer(int p0, System.Guid p1, System.Guid p2, System.Guid p3, short p4, out System.Guid p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.WriteGuid(p3);
            m.WriteInt16(p4);
            _Unmarshal_Helper u = SendReceive(1, m);
            p5 = u.ReadGuid();
            return u.ReadInt32();
        }
        public int s_vcom_server_ReleaseServer(int p0, System.Guid p1, System.Guid p2, System.Guid p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.WriteGuid(p3);
            _Unmarshal_Helper u = SendReceive(2, m);
            return u.ReadInt32();
        }
        public int s_vcom_server_RequestServerResource(int p0, System.Guid p1, System.Guid p2, System.Guid p3, out System.Guid p4, out int p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.WriteGuid(p3);
            _Unmarshal_Helper u = SendReceive(3, m);
            p4 = u.ReadGuid();
            p5 = u.ReadInt32();
            return u.ReadInt32();
        }
        public int s_vcom_server_AcceptServerResource(int p0, System.Guid p1, System.Guid p2, System.Guid p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.WriteGuid(p3);
            _Unmarshal_Helper u = SendReceive(4, m);
            return u.ReadInt32();
        }
        public int s_vcom_server_ReleaseServerResource(int p0, System.Guid p1, System.Guid p2, System.Guid p3)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.WriteGuid(p3);
            _Unmarshal_Helper u = SendReceive(5, m);
            return u.ReadInt32();
        }
        public int s_vcom_server_WaitForClsidRegistration(int p0, System.Guid p1, System.Guid p2, System.Guid p3, int p4, int p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.WriteGuid(p3);
            m.WriteInt32(p4);
            m.WriteInt32(p5);
            _Unmarshal_Helper u = SendReceive(6, m);
            return u.ReadInt32();
        }
        public int s_vcom_server_StartComVirtualService(int p0, System.Guid p1, System.Guid p2, Struct_2 p3, Struct_1 p4, System.Guid p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.Write_1(p3);
            m.Write_0(p4);
            m.WriteGuid(p5);
            _Unmarshal_Helper u = SendReceive(7, m);
            return u.ReadInt32();
        }
        public int s_vcom_server_ComVirtualService(int p0, System.Guid p1, System.Guid p2, Struct_2 p3, out short p4)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            m.Write_1(p3);
            _Unmarshal_Helper u = SendReceive(8, m);
            p4 = u.ReadInt16();
            return u.ReadInt32();
        }
        public int s_vcom_server_MakeLowIntegrityCOMMap(int p0, System.Guid p1, System.Guid p2)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteGuid(p1);
            m.WriteGuid(p2);
            _Unmarshal_Helper u = SendReceive(9, m);
            return u.ReadInt32();
        }
    }
    #endregion
}