Microsoft DirectX 9.0 |
Sets the current media stream's DirectDraw object.
Syntax
HRESULT SetDirectDraw(
IDirectDraw *pDirectDraw
);
Parameters
pDirectDraw
[in] Pointer to an IDirectDraw interface that contains the media stream's new DirectDraw object.
Return Values
Returns S_OK if successful or E_POINTER if the pointer is invalid.
Remarks
This method fails if the current stream already has allocated samples and its DirectDraw object differs from the specified one. It will always succeed if the specified DirectDraw object matches the stream's current object.
If this stream has no allocated samples, you can set pDirectDraw to NULL. This forces the stream to release its reference to the current DirectDraw object.
See Also