IMAPISession::GetMsgStoresTable
The GetMsgStoresTable method provides access to the message store table, which contains information about all of the message stores in the session profile.
Syntax
HRESULT GetMsgStoresTable (
ULONG ulFlags,
LPMAPITABLE FAR * lppTable
);
Parameters
- ulFlags
[in] Ignored. - lppTable
[out] Reference to the message store table, implemented on IMAPITable.
Return Values
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
- S_OK
Indicates success.
Remarks
GetMsgStoresTable retrieves a pointer to the message store table, a table maintained by MAPI that contains information about each open message store in the profile.
The following IMAPITable methods are supported for message store tables in Windows Mobile Messaging:
Because MAPI updates the message store table during the session whenever changes occur, call the IMapiSession::Advise method to register to be notified of these changes. Possible changes include the addition of new message stores, removal of existing stores, and changes to the default store.
Requirements
Pocket PC: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: mapix.h
Library: cemapi.lib
See Also
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.