The Initialize method is called by Messaging for transport initialization.
HRESULT Initialize ( ImailSyncCallBack * pCallBack, LPCWSTR pszProfileName, ImsgStore * pMsgStore );
[in] Reference to an IMailSyncCallBack object that the transport can use to interact with Messaging.
[in] The profile name of the transport instance. This is needed when communicating with Messaging — for example, when using IMailSyncCallBack::LogEvent.
[in] Reference to an IMsgStore object where the transport can store synchronized downloaded messages and folders.
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
The transport should store away the parameter values for later use.
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