IMAPIMessageSite::GetFolder

Last modified: July 23, 2011

Applies to: Outlook

Returns the folder in which the current message was created or opened, if such a folder exists. This method returns NULL in the ppFolder parameter for embedded messages, which are not stored directly in a folder.

HRESULT GetFolder(
  LPMAPIFOLDER FAR * ppFolder
);

ppFolder

[out] A pointer to a pointer to the returned folder.

S_OK

The call succeeded and has returned the expected value or values.

S_FALSE

No folder exists for the message.

For a list of interfaces that are related to form servers, see MAPI Form Interfaces.

For MFCMAPI sample code, see the following table.

File

Function

Comment

MyMAPIFormViewer.cpp

CMyMAPIFormViewer::GetFolder

MFCMAPI uses the IMAPIMessageSite::GetFolder method to return the currently cached pointer to the specified folder.

Show:
© 2014 Microsoft