IMSVidDeviceEvent::StateChange method (segment.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

This topic applies to Windows XP or later.

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

Syntax

HRESULT StateChange(
  [in] IMSVidDevice *lpd,
  [in] long         oldState,
  [in] long         newState
);

Parameters

[in] lpd

Pointer to the device object that signaled the change.

[in] oldState

Specifies the old state as an MSVidCtlStateList value.

[in] newState

Specifies the new state as an MSVidCtlStateList value.

Return value

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.

Requirements

Requirement Value
Target Platform Windows
Header segment.h (include Msvidctl.h)

See also

IMSVidDeviceEvent