Export (0) Print
Expand All

IPOutlookApp::GetDefaultFolder (Compact 7)

3/12/2014

The GetDefaultFolder method gets an IFolder object for one of the five folders provided by Outlook Mobile.


HRESULT GetDefaultFolder(
  int olFolder,
   IFolder ** ppIFolder
);

olFolder

[in] Specifies one of the OlDefaultFolders enumeration values.

ppIFolder

[out] Reference to a IFolder object.

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.

The following code example shows how to get the Outlook Mobile Contacts folder.

Ee486214.note(en-us,WinEmbedded.70).gifNote:
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 GetContactsFolder(IPOutlookApp * polApp)
{
    IFolder * pFolder;

    polApp->GetDefaultFolder(olFolderContacts, &pFolder);
    …
}

Header

pimstore.h

Library

Pimstore.lib

Show:
© 2014 Microsoft