Microsoft DirectX 8.1 (C++)

ICADenial::NotifyTollStateChanged

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

The NotifyTollStateChanged method signals that the state of a toll has changed.

Syntax

HRESULT NotifyTollStateChanged(
  ICAToll*  pToll,
  CATollState  enStateFrom
);

Parameters

  pToll

[in]  Pointer to the ICAToll interface of the toll.

  enStateFrom

[in]  Member of the CATollState enumeration, specifying the previous state.

Return Values

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

Remarks

This helper method triggers an _ICATollsEvents::StateChanged event. If the state switches to selected, this method unselects the other tolls in the collection. A toll that is attached to a denial should call this method whenever its own state changes.

See Also