Share via


IMAPIMessageSite::GetStore

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the message store that contains the current message, if such a store exists. This method will return NULL in the ppStore parameter for embedded messages, which are stored in another message instead of directly in a message store.

HRESULT GetStore(
  LPMDB FAR * ppStore
);

Parameters

  • ppStore
    [out] A pointer to a pointer to the message store.

Return Value

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

  • S_FALSE
    There is no store that contains the message.

Remarks

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

MFCMAPI Reference

For MFCMAPI sample code, see the following table.

File

Function

Comment

MyMAPIFormViewer.cpp

CMyMAPIFormViewer::GetStore

MFCMAPI uses the IMAPIMessageSite::GetStore method to get the currently cached pointer to the specified store, if it is available.

See Also

Reference

IMAPIMessageSite : IUnknown

Concepts

MFCMAPI as a Code Sample

MAPI Form Interfaces