Integrating Applications with Outlook Mobile

Send Feedback

You can use the Pocket Outlook Object Model (POOM) to create Windows Mobile–based Personal Information Management (PIM) applications that integrate with Microsoft Outlook Mobile. You can add commands to the Tools menus of the Calendar, Tasks, and Contacts applications on a Windows Mobile-based device, and you can use the Pocket Outlook Object Model to manipulate their associated items and the information that they contain. For detailed information about using the Pocket Outlook Object Model (POOM) API, refer to the Pocket Outlook Object Model API.

Note   For platform versions later than Windows Mobile 2003 SE, you can no longer use the CePIMCommand function for creating Outlook Mobile menu add-ins. Use the IContextMenu interface instead.

The main interface to the Pocket Outlook Object Model is the Outlook Mobile Application Object, from which all other Pocket Outlook objects are derived. The Outlook Mobile application object is created by calling CoCreateInstance. By using the IPOutlookApp::Logon interface to log on to the Outlook Mobile application object, you can get various folder objects by using the IPOutlookApp::GetDefaultFolder interface.

A folder object contains a collection of items. The folder implementation in the Pocket Outlook Object Model is a subset of the folder object in Outlook Object Model. The folder object is used as a wrapper for the Contacts, Clock, Calendar, and Tasks databases. There is only one folder for each type of item, and the user is not allowed to create or otherwise manipulate the folder object itself. The folder object is provided mainly for compatibility with Outlook. An Infrared folder is also provided, which you can use to send items over an infrared (IR) port.

From the folder **** object, you can use the IFolder::get_Items property method to retrieve the Items collection, which is a collection of Contacts, Tasks, Appointments, or Cities. From an Items collection, you can retrieve or create individual items. You can also use the Items collection to do basic filtering over a collection of objects.

For an individual item, you can set and retrieve properties. You can create, modify, or delete an item from the store.

Task and Appointment items support the IRecurrencePattern interface object. You can use the methods of the IRecurrencePattern interface to set up recurring tasks or appointments. Appointments also support the Recipients collection so that you can specify recipients for a meeting. If an appointment has a Recipients collection, it is called a meeting request. The StartTime and EndTime properties return times in the time zone of the appointment.

See Also

How to: Extend Shortcut Menus | IContextMenu | Pocket Outlook Object Model Application Development for Windows Mobile-based Devices

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.