Microsoft DirectX 9.0 |
The GetState method retrieves the filters's state (running, stopped, or paused). This method implements the IMediaFilter::GetState method.
Syntax
HRESULT GetState(
DWORD dwMilliSecsTimeout,
FILTER_STATE *State
);
Parameters
dwMilliSecsTimeout
Time-out interval, in milliseconds.
State
Pointer to a variable that receives a member of the FILTER_STATE enumerated type, indicating the filter's state.
Return Value
Returns S_OK or E_POINTER.
Remarks
In the base class, all state transitions are synchronous and the dwMilliSecsTimeout parameter is ignored. If a derived class performs asynchronous state transitions, it should override this method to wait during state transitions, with a time-out of dwMilliSecsTimeout milliseconds.
See Also