Microsoft.Protocols.TestSuites.Common.RpcAdapter.RpcExt2 C# (CSharp) Method

RpcExt2() public method

Sends remote operation (ROP) commands to the server with a Session Context Handle.
public RpcExt2 ( IntPtr &pcxh, byte rgbIn, byte &rgbOut, uint &pcbOut ) : uint
pcxh System.IntPtr On input, the client MUST pass a valid Session Context Handle that was created by calling EcDoConnectEx. /// The server uses the Session Context Handle to identify the Session Context to use for this call. On output, the server MUST return the same Session Context Handle on success.
rgbIn byte This buffer contains the ROP request payload.
rgbOut byte On success, this buffer contains the ROP response payload.
pcbOut uint On input, this parameter contains the maximum size of the rgbOut buffer.On output, this parameter contains the size of the ROP response payload.
return uint
        public uint RpcExt2(
                       ref IntPtr pcxh,
                       byte[] rgbIn,
                       out byte[] rgbOut,
                       ref uint pcbOut)
        {
            uint pulFlags = PulFlags;
            uint pcbAuxOut = PcbAuxOut;
            uint pulTransTime;
            byte[] rgbAuxIn = { };
            byte[] rgbAuxOut = new byte[pcbAuxOut];
            uint ret = this.RpcExt2(
                        ref pcxh,
                        ref pulFlags,
                        rgbIn,
                        (uint)rgbIn.Length,
                        out rgbOut,
                        ref pcbOut,
                        rgbAuxIn,
                        (uint)rgbAuxIn.Length,
                        out rgbAuxOut,
                        ref pcbAuxOut,
                        out pulTransTime);
            return ret;
        }

Same methods

RpcAdapter::RpcExt2 ( IntPtr &pcxh, uint &pulFlags, byte rgbIn, uint ropRequestLength, byte &rgbOut, uint &pcbOut, byte rgbAuxIn, uint auxInLength, byte &rgbAuxOut, uint &pcbAuxOut, uint &pulTransTime ) : uint