Microsoft DirectX 9.0


This topic applies to Windows XP only.

The StateChange method signals that the state of the device has changed.


HRESULT StateChange(
  IMSVidDevice*  plpd,
  long  oldState,
  long  newState



[in]  Pointer to the device object that signalled the change.


[in]  Specifies the old state as an MSVidCtlStateList value.


[in]  Specifies the new state as an MSVidCtlStateList value.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.


The dispatch identifier (dispid) of this method is eventidStateChange.

See Also