Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
An application needs to respond whenever a policy denies a request, removes a denial, or creates a new offer.
The following CA collection objects fire events whenever items are added or removed, or change state:
Also, the ICARequest object fires events when a request becomes active or inactive. The ICAComponents collection does not fire any events, because components are fixed for the lifetime of a stream.
The CAManager listens for all of these events and forwards them using its own events. For example, when the ICAOffers collection sends an ItemAdded event, the CAManager sends an OfferAdded event. Although an application can listen for events from the underlying objects, the CAManager provides a convenient central point.
To receive events from the CAManager, declare a CAManager variable using the WithEvents keyword. Then implement event procedures for the events that you want to receive. In the Visual Basic Code Editor, insert the declaration for the procedure by selecting the name of your variable from the Object Listbox and then selecting the event from the Procedure Listbox. Assign the variable as a reference to the CAManager object.
See Also