Microsoft DirectX 8.1 (C++)

IMSVidDeviceEvent::StateChange

This topic applies to Windows XP Home Edition and Windows XP Professional only.

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

Syntax

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

Parameters

  plpd

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

  oldState

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

  newState

[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.

Remarks

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

See Also