Creating Offers
This topic applies to Windows XP Home Edition and Windows XP Professional only.
To create a new offer, perform the following steps:
- Call the ICAManager::get_Offers method to retrieve the CA Manager’s offer collection.
- 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.
- Call the ICAOffer::put_Description method to add descriptions in other formats (long description, HTML, and XML).
- 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.