Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
You can use the Pocket Outlook Object Model (POOM) to create mobile Personal Information Management (PIM) applications that integrate with Microsoft Outlook Mobile. You can add commands to the Toolsmenus of the Calendar, Tasks, and Contacts applications on a Windows Mobile device, and you can use POOM to manipulate their associated items, and the information that they contain. For detailed information about using the POOM APIs, refer to the Pocket Outlook Object Model Reference.
The main interface to the POOM is IPOutlookApp, the Outlook Mobile Application Object; from which all other POOM objects are derived. The Outlook Mobile application object is created by calling CoCreateInstance. By using IPOutlookApp::Logonto log on to the Outlook Mobile application object, you can retrieve handles to the various OlDefaultFoldersobjects by using IPOutlookApp::GetDefaultFolder.
The POOM Folderimplementation is a subset of the Outlook Folderobject. Each item type is associated with one of the OlDefaultFolders, and users cannot create or manipulate the Folderobject itself. The Folderobject is provided mainly for compatibility with Outlook.
The IPOutlookItemCollectionobject is obtained from the Folderobject by using IFolder::get_Items. An Items collection is a collection of IContact, ITask, or IAppointmentobjects. You can retrieve individual items by using IPOutlookItemCollection::Item, delete individual items by using IPOutlookItemCollection::Remove, and create individual items by using IPOutlookItemCollection::Add. With the Items collection, you can also perform basic filtering over a collection of objects by using IPOutlookItemCollection::Restrict.
You can set and retrieve individual properties of an individual Outlook item by using the get/put property methods associated with each Outlook item type.
Task and Appointment items support the IRecurrencePatternobject. With this object, you can set up a recurrence for a Task or Appointment. Appointment items also support the IRecipientscollection, which lets you specify recipients for a meeting. An Appointment item that has a collection of recipients associated with it is a meeting request.
Note: |
---|
For platform versions later than Windows Mobile 2003 Second Edition, you can no longer use the CePimCommandfunction for creating Outlook Mobile menu add-ins. Use the IContextMenuinterface instead. |