csharp/tyranid/WindowsRpcClients/Win10_1809/appidsvc.dll/8a7b5006-cc13-11db-9705-005056c00008_1.0.cs

8a7b5006-cc13-11db-9705-005056c00008_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\appidsvc.dll
// Interface ID: 8a7b5006-cc13-11db-9705-005056c00008
// Interface Version: 1.0



namespace rpc_8a7b5006_cc13_11db_9705_005056c00008_1_0
{
    
    #region Marshal Helpers
    internal clast _Marshal_Helper : NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer
    {
        public void Write_0(byte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_1(byte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_2(byte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_3(char[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_4(char[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_5(byte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_6(byte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_7(byte[] p0, long p1)
        {
            WriteConformantArray(p0, p1);
        }
        public void Write_8(byte[] 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 byte[] Read_0()
        {
            return ReadConformantArray();
        }
        public byte[] Read_1()
        {
            return ReadConformantArray();
        }
        public byte[] Read_2()
        {
            return ReadConformantArray();
        }
        public char[] Read_3()
        {
            return ReadConformantArray();
        }
        public char[] Read_4()
        {
            return ReadConformantArray();
        }
        public byte[] Read_5()
        {
            return ReadConformantArray();
        }
        public byte[] Read_6()
        {
            return ReadConformantArray();
        }
        public byte[] Read_7()
        {
            return ReadConformantArray();
        }
        public byte[] Read_8()
        {
            return ReadConformantArray();
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("8a7b5006-cc13-11db-9705-005056c00008", 1, 0)
        {
        }
        private _Unmarshal_Helper SendReceive(int p, _Marshal_Helper m)
        {
            return new _Unmarshal_Helper(SendReceive(p, m.DataRepresentation, m.ToArray(), m.Handles));
        }
        // async
        public void AppIDRpcVerifyFile(int p0, out int p1, out int p2, out byte[] p3, out int p4, out byte[] p5, out long p6, out long p7, ref string p8)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteInt32(p0);
            m.WriteReferent(p8, new System.Action(m.WriteTerminatedString));
            _Unmarshal_Helper u = SendReceive(0, m);
            p1 = u.ReadInt32();
            p2 = u.ReadInt32();
            p3 = u.ReadReferent(new System.Func(u.Read_0), false);
            p4 = u.ReadInt32();
            p5 = u.ReadReferent(new System.Func(u.Read_1), false);
            p6 = u.ReadInt64();
            p7 = u.ReadInt64();
            p8 = u.ReadReferent(new System.Func(u.ReadConformantVaryingString), true);
        }
        // async
        public void AppIDRpcVerifyPackageMoniker(string p0, out int p1, out long p2, out int p3, out byte[] p4, out string p5, out string p6)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteReferent(p0, new System.Action(m.WriteTerminatedString));
            _Unmarshal_Helper u = SendReceive(1, m);
            p1 = u.ReadInt32();
            p2 = u.ReadInt64();
            p3 = u.ReadInt32();
            p4 = u.ReadReferent(new System.Func(u.Read_2), false);
            p5 = u.ReadReferent(new System.Func(u.ReadConformantVaryingString), false);
            p6 = u.ReadReferent(new System.Func(u.ReadConformantVaryingString), false);
        }
        // async
        public void AppIDRpcOnCreateProcess(
                    char[] p0, 
                    short p1, 
                    char[] p2, 
                    short p3, 
                    int p4, 
                    int p5, 
                    long p6, 
                    byte[] p7, 
                    int p8, 
                    byte[] p9, 
                    int p10, 
                    byte[] p11, 
                    int p12, 
                    string p13, 
                    int p14, 
                    System.Guid p15, 
                    out int p16)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteReferent(p0, new System.Action(m.Write_3), p1);
            m.WriteInt16(p1);
            m.WriteReferent(p2, new System.Action(m.Write_4), p3);
            m.WriteInt16(p3);
            m.WriteInt32(p4);
            m.WriteInt32(p5);
            m.WriteInt64(p6);
            m.WriteReferent(p7, new System.Action(m.Write_5), p8);
            m.WriteInt32(p8);
            m.WriteReferent(p9, new System.Action(m.Write_6), p10);
            m.WriteInt32(p10);
            m.WriteReferent(p11, new System.Action(m.Write_7), p12);
            m.WriteInt32(p12);
            m.WriteReferent(p13, new System.Action(m.WriteTerminatedString));
            m.WriteInt32(p14);
            m.WriteGuid(p15);
            _Unmarshal_Helper u = SendReceive(2, m);
            p16 = u.ReadInt32();
        }
        // async
        public void AppIDRpcOnCreateFile(string p0, string p1, byte[] p2, int p3, int p4, System.Guid p5, out int p6)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteReferent(p0, new System.Action(m.WriteTerminatedString));
            m.WriteReferent(p1, new System.Action(m.WriteTerminatedString));
            m.Write_8(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p2, "p2"), p3);
            m.WriteInt32(p3);
            m.WriteInt32(p4);
            m.WriteGuid(p5);
            _Unmarshal_Helper u = SendReceive(3, m);
            p6 = u.ReadInt32();
        }
    }
    #endregion
}