Microsoft DirectX 8.1 (C++) |
Retrieves a pointer to the DirectDraw object used by the current media stream.
Syntax
HRESULT GetDirectDraw(
IDirectDraw **ppDirectDraw
);
Parameters
ppDirectDraw
[out] Address of a pointer to an IDirectDraw interface that will contain the current media stream's associated DirectDraw object.
Return Value
Returns S_OK if successful or E_POINTER if the parameter is invalid.
Remarks
If you haven't initialized the stream yet, the retrieved pointer will be NULL and the method will return S_OK. If you have initialized the stream, this method increments the retrieved pointer's reference count.
See Also