Share via


IMailSyncHandler::Initialize (Compact 7)

3/12/2014

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

See Also

Reference

IMailSyncHandler