Share via


Integrating Applications with Pocket Outlook

You can use the Pocket Outlook Object Model (POOM) to create mobile device applications that integrate with Microsoft Pocket Outlook. 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 POOM API, refer to the Pocket Outlook Object Model API.

Note   Using CePIMCommand to create Pocket Outlook menu add-ins has been deprecated. Use the IContextMenu interface instead.

The main interface to the Pocket Outlook Object Model is the Pocket Outlook application object, from which all other POOM objects are derived. The Pocket Outlook application object is created by calling CoCreateInstance. By using the IPOutlookApp::Logon interface to log on to the 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 POOM is a subset of the folder object in Outlook. 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

Pocket Outlook Object Model

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.