The OpenMsgStore method opens a message store and returns a reference to the IMsgStore object for further access.
HRESULT OpenMsgStore ( ULONG ulUIParam, ULONG cbEntryID, LPENTRYID lpEntryID, LPCIID lpInterface, ULONG ulFlags, LPMDB FAR * lppMDB );
[in] Count of bytes in the entry identifier specified by lpEntryID.
[in] Reference to the entry identifier of the message store that is to be opened.
[out] Reference to the message store object, implemented on IMsgStore.
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
An attempt was made to access a message store for which the user has insufficient permissions.
The message store indicated by lpEntryID does not exist.
The server is not configured to support the client code page.
The server is not configured to support the client locale information.
The call succeeded, but the message store provider has error information available. When this warning is returned, the call should be handled as successful.
The access level for message stores is always read/write.
Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Send Feedback on this topic to the authors