Microsoft DirectX 9.0 |
The SetState method runs or stops the multimedia stream object.
Syntax
HRESULT SetState(
STREAM_STATE NewState
);
Parameters
NewState
[in] A member of the STREAM_STATE enumeration, specifying the new state (running or stopped).
Return Values
Returns an HRESULT value. Possible values include the following.
Value | Description |
E_INVALIDARG | Invalid argument. |
S_OK | Success. |
Remarks
Stopping the multimedia stream object deletes any data that is pending.
See Also