Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional 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.
Syntax
object_StateChange(
lpd As MSVidDevice,
OldState As Long,
NewState As Long)
Parameters
lpd
Specifies the IMSVidDevice object that sent the event.
OldState
Identifies the previous state of the device.
NewState
Identifies the new state.
Remarks
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.
Value | Description |
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. |
See Also