IMailSyncHandler::Initialize

4/8/2010

The Initialize method is called by Messaging for transport initialization.

Syntax

HRESULT Initialize (
  ImailSyncCallBack * pCallBack,
  LPCWSTR pszProfileName,
  ImsgStore * pMsgStore
);

Parameters

  • pCallBack
    [in] Reference to an IMailSyncCallBack object that the transport can use to interact with Messaging.
  • pszProfileName
    [in] The profile name of the transport instance. This is needed when communicating with Messaging — for example, when using IMailSyncCallBack::LogEvent.
  • pMsgStore
    [in] Reference to an IMsgStore object where the transport can store synchronized downloaded messages and folders.

Return Value

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

The transport should store away the parameter values for later use.

Requirements

Header cemapi.h
Library cemapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Reference

IMailSyncHandler

Other Resources

Messaging