Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method returns a Folder object for one of the five folders provided by Pocket Outlook.
HRESULT GetDefaultFolder(int olFolder,IFolder** ppIFolder);
Parameters
- olFolder
[in] Specifies which folder to get: olFolderCalendar, olFolderTasks, olFolderContacts, and olFolderInfrared. - ppIFolder
[out] Pointer to a folder object. 
Return Values
S_OK indicates success. If an error occurs, the appropriate HRESULT is returned.
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
OS Versions: Windows CE 2.0 and later.
Header: Pimstore.h.
Link Library: Pimstore.lib.
See Also
IPOutlookApp | IPOutlookApp Properties
Send Feedback on this topic to the authors