Microsoft DirectX 8.1 (C++)

Creating Offers

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

To create a new offer, perform the following steps:

  1. Call the ICAManager::get_Offers method to retrieve the CA Manager’s offer collection.
  2. Call the ICAOffers::get_AddNew method to create a new offer. In the get_AddNew method, specify a short description, a starting time when the offer becomes valid, and a time when the offer expires. The get_AddNew method returns an ICAOffer pointer.
  3. Call the ICAOffer::put_Description method to add descriptions in other formats (long description, HTML, and XML).
  4. Add tolls, as described in the previous sections. An offer should have at least one toll. Otherwise, the user has no way to purchase the offer.