Share via


IMailSyncHandler::Initialize

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 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

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

Requirements

Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: cemapi.h
Library: cemapi.lib

See Also

IMailSyncHandler

Messaging

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.