IRDPSRAPITransportStream::AllocBuffer method

Called by the Remote Desktop Protocol (RDP) stack to allocate a stream buffer.

Syntax


HRESULT AllocBuffer(
  [in]          long                           maxPayload,
  [out, retval] IRDPSRAPITransportStreamBuffer **ppBuffer
);

Parameters

maxPayload [in]

Type: long

The maximum size, in bytes, of the payload that will be placed into the buffer.

ppBuffer [out, retval]

Type: IRDPSRAPITransportStreamBuffer**

The address of an IRDPSRAPITransportStreamBuffer interface pointer that receives the buffer object.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

RdpEncomAPI.h

IDL

RdpEncomAPI.idl

Type library

RdpEncomAPI.tlb

DLL

RdpEncom.dll

See also

IRDPSRAPITransportStreamBuffer
IRDPSRAPITransportStream

 

 

Show: