Microsoft DirectX 8.1 (C++) |
The SetPointer method sets the pointer to the media sample's memory buffer.
Syntax
HRESULT SetPointer(
BYTE *pBuffer,
long lSize
);
Parameters
pBuffer
[in] Pointer to a memory buffer allocated by the caller, or NULL.
lSize
[in] Size of the buffer, in bytes.
Return Value
Returns one of the following values.
Return code | Description |
E_OUTOFMEMORY | Insufficient memory. |
S_OK | Success. |
Remarks
If the value of the pBuffer parameter is NULL, the method allocates a memory block, with a size in bytes equal to the value of the lSize parameter. There is no guarantee that the memory has been initialized.
See Also