IFolder

Send Feedback

The IFolder interface exposes properties and methods to create and access individual POOM items, and to send them over an infrared link.

The system provides the following default folders: Contacts, Tasks, Appointments, and Infrared. You can use them all (except the infrared folder) to create and access individual POOM items. You can use the infrared folder only to send items over the IR port.

Methods in Vtable Order

IFolder methods PPC SP Description
get_Items X X Gets the list of items in a folder.
get_DefaultItemType X X Gets the folder type.
get_Application X X Gets the main Outlook Mobile IPOutlookApp object.
AddItemToInfraredFolder X X Adds an item to the list of items to be sent by infrared.
SendToInfrared X X Transmits items in the Infrared folder over the IR port.
ReceiveFromInfrared X X Not supported. Initiates IR reception of items belonging to the folder type.

Remarks

Get any of the IFolder objects with the IPOutlookApp::GetDefaultFolder method on the main Outlook Mobile application object.

Code Example

The following code example shows how to retrieve the Calendar folder.

Note   To make the following code example easier to read, security checking and error handling are not included. This code example should not be used in a release configuration unless it has been modified to include them.

void GetCalendarFolder(IPOutlookApplication * polApp)
{
    IFolder * pFolder;
    polApp->GetDefaultFolder(olFolderCalendar, &pFolder);

    // Release objects.
    pFolder->Release();
}

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: pimstore.h
Library: pimstore.lib

See Also

Pocket Outlook Object Model API Interfaces | Pocket Outlook Object Model API Enumerations

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.