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 |
|
|
IDL |
|
|
Type library |
|
|
DLL |
|
See also