csharp/tyranid/WindowsRpcClients/Win10_1809/bisrv.dll/c605f9fb-f0a3-4e2a-a073-73560f8d9e3e_1.0.cs

c605f9fb-f0a3-4e2a-a073-73560f8d9e3e_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\bisrv.dll
// Interface ID: c605f9fb-f0a3-4e2a-a073-73560f8d9e3e
// Interface Version: 1.0



namespace rpc_c605f9fb_f0a3_4e2a_a073_73560f8d9e3e_1_0
{
    
    #region Marshal Helpers
    internal clast _Marshal_Helper : NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer
    {
        public void Write_0(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();
        }
    }
    #endregion
    #region Client Implementation
    public sealed clast Client : NtApiDotNet.Win32.Rpc.RpcClientBase
    {
        public Client() : 
                base("c605f9fb-f0a3-4e2a-a073-73560f8d9e3e", 1, 0)
        {
        }
        private _Unmarshal_Helper SendReceive(int p, _Marshal_Helper m)
        {
            return new _Unmarshal_Helper(SendReceive(p, m.DataRepresentation, m.ToArray(), m.Handles));
        }
        public uint RBiSrvSignalEvent(System.Guid p0, System.Nullable p1, System.Nullable p2, byte[] p3, int p4, System.Nullable p5)
        {
            _Marshal_Helper m = new _Marshal_Helper();
            m.WriteGuid(p0);
            m.WriteReferent(p1, new System.Action(m.WriteSByte));
            m.WriteReferent(p2, new System.Action(m.WriteGuid));
            m.WriteReferent(p3, new System.Action(m.Write_0), p4);
            m.WriteInt32(p4);
            m.WriteReferent(p5, new System.Action(m.WriteGuid));
            _Unmarshal_Helper u = SendReceive(0, m);
            return u.ReadUInt32();
        }
    }
    #endregion
}