Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This method retrieves the buffer and the size of the valid data in the buffer.
Syntax
HRESULT GetBufferAndLength( BYTE** ppBuffer, DWORD* pcbLength ); |
Parameters
- ppBuffer
-
[out] Address of a pointer that receives the buffer array. The ppBufferparameter can be NULL if pcbLengthis not NULL.
- pcbLength
-
[out] Pointer to a variable that receives the size of the valid data, in bytes. The pcbLengthparameter can be NULL if ppBufferis not NULL.
Return Value
Returns an HRESULTvalue. Possible values include the following.
Value | Description |
---|---|
S_OK |
Retrieved the requested number of items |
E_POINTER |
NULL pointer argument |
Remarks
Either parameter can be NULL, in which case it does not receive a value. At least one parameter must be non-NULL. If both parameters are NULL, the method returns E_POINTER.
The value returned in the pcbLengthparameter is the size of the valid data in the buffer, not the buffer's allocated size. To obtain the buffer's allocated size, call the IMediaBuffer::GetMaxLengthmethod.
Requirements
Header | dmo.h |
Library | Dmoguid.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.