IRDPSRAPITransportStream::AllocBuffer method (rdpencomapi.h)
Called by the Remote Desktop Protocol (RDP) stack to allocate a stream buffer.
Syntax
HRESULT AllocBuffer(
[in] long maxPayload,
[out, retval] IRDPSRAPITransportStreamBuffer **ppBuffer
);
Parameters
[in] maxPayload
Type: long
The maximum size, in bytes, of the payload that will be placed into the buffer.
[out, retval] ppBuffer
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
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | rdpencomapi.h |
DLL | RdpEncom.dll |