Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 1.65 KB

imapimessagesite-getstore.md

File metadata and controls

69 lines (42 loc) · 1.65 KB
title description manager ms.date ms.audience ms.topic ms.service ms.localizationpriority api_name api_type ms.assetid
IMAPIMessageSiteGetStore
IMAPIMessageSiteGetStore returns the message store that contains the current message, if such a store exists.
lindalu
03/09/2015
Developer
reference
office-online-server
medium
IMAPIMessageSite.GetStore
COM
d1ca619e-8bdc-417b-aed6-23dd30e6eafa

IMAPIMessageSite::GetStore

Applies to: Outlook 2013 | Outlook 2016

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

IMAPIMessageSite : IUnknown

MFCMAPI as a Code Sample

MAPI Form Interfaces