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.
LPMAPIFOLDER FAR * ppFolder
[out] A pointer to a pointer to the returned folder.
The call succeeded and has returned the expected value or values.
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.
MFCMAPI uses the IMAPIMessageSite::GetFolder method to return the currently cached pointer to the specified folder.