|Microsoft DirectX 9.0|
Sets the current media stream's DirectDraw object.
HRESULT SetDirectDraw( IDirectDraw *pDirectDraw );
[in] Pointer to an IDirectDraw interface that contains the media stream's new DirectDraw object.
Returns S_OK if successful or E_POINTER if the pointer is invalid.
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.