IPOutlookApp::GetDefaultFolder
The GetDefaultFolder method gets an IFolder object for one of the five folders provided by Pocket Outlook.
Syntax
HRESULT GetDefaultFolder(
int olFolder,
IFolder ** ppIFolder
);
Parameters
- olFolder
[in] Specifies which of the following OlDefaultFolders enumeration value to get: olFolderCalendar, olFolderTasks, olFolderContacts, or olFolderInfrared. - ppIFolder
[out] Reference to a folder object.
Return Values
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
- S_OK
The method completed successfully.
Example
The following code example shows how to get the Pocket Outlook Contacts folder.
void GetContactsFolder(IPOutlookApp * polApp)
{
IFolder * pFolder;
polApp->GetDefaultFolder(olFolderContacts, &pFolder);
...
Requirements
Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: pimstore.h
Library: pimstore.lib
See Also
How to: Add PIM Items to the Pocket Outlook Database
Pocket Outlook Object Model API Interfaces
Pocket Outlook Object Model API Enumerations
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.