|Microsoft DirectX 9.0|
This topic applies to Windows XP only.
The StateChange for a device object event is called by any input device or rendering device object when the state of the device changes.
object_StateChange( lpd As MSVidDevice, OldState As Long, NewState As Long)
Specifies the IMSVidDevice object that sent the event.
Identifies the previous state of the device.
Identifies the new state.
This event is analogous to the DirectShow EC_COMPLETE event. You will need to implement a separate event handler in your application for each device type. OldState and NewState can have one of the values shown in the following table.
|1||The device is not part of a filter graph.|
|2||The device is stopped.|
|3||The device is paused.|
|4||The device is playing.|