csharp/tyranid/WindowsRpcClients/Win10_1809/appinfo.dll/fd7a0523-dc70-43dd-9b2e-9c5ed48225b1_1.0.cs

fd7a0523-dc70-43dd-9b2e-9c5ed48225b1_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\appinfo.dll
// Interface ID: fd7a0523-dc70-43dd-9b2e-9c5ed48225b1
// Interface Version: 1.0



namespace rpc_fd7a0523_dc70_43dd_9b2e_9c5ed48225b1_1_0
{
    
    #region Marshal Helpers
    internal clast _Marshal_Helper : NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer
    {
        public void Write_0(string[] p0, long p1)
        {
            WriteConformantStringArray(p0, new System.Action(this.WriteTerminatedString), p1);
        }
        public void Write_1(string[] p0, long p1)
        {
            WriteConformantStringArray(p0, new System.Action(this.WriteTerminatedString), 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 string[] Read_0()
        {
            return ReadConformantStringArray(new System.Func(this.ReadConformantVaryingString));
        }
        public string[] Read_1()
        {
            return ReadConformantStringArray(new System.Func(this.ReadConformantVaryingString));
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("fd7a0523-dc70-43dd-9b2e-9c5ed48225b1", 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 int RAiGetTokenForMSI(
                    NtApiDotNet.Ndr.Marshal.NdrUInt3264 p0, 
                    int p1, 
                    int p2, 
                    string p3, 
                    int p4, 
                    string p5, 
                    string p6, 
                    string p7, 
                    string p8, 
                    string p9, 
                    string p10, 
                    int p11, 
                    string[] p12, 
                    string[] p13, 
                    int p14, 
                    out NtApiDotNet.Ndr.Marshal.NdrUInt3264 p15)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteUInt3264(p0);
            m.WriteInt32(p1);
            m.WriteInt32(p2);
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p3, "p3"));
            m.WriteInt32(p4);
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p5, "p5"));
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p6, "p6"));
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p7, "p7"));
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p8, "p8"));
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p9, "p9"));
            m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p10, "p10"));
            m.WriteInt32(p11);
            m.WriteReferent(p12, new System.Action(m.Write_0), p11);
            m.WriteReferent(p13, new System.Action(m.Write_1), p11);
            m.WriteInt32(p14);
            _Unmarshal_Helper u = SendReceive(0, m);
            p15 = u.ReadUInt3264();
            return u.ReadInt32();
        }
    }
    #endregion
}