IMailSyncHandler::Initialize

Send Feedback

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

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

See Also

IMailSyncHandler | Messaging

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.