Partager via


IExchangeClient::Initialize (Windows Embedded CE 6.0)

1/6/2010

This method initializes the Exchange client library and registers a client-provided IExchangeClientRequestCallback implementation that the Exchange client library uses to provide information, including results and in-progress status updates, to client code.

Syntax

HRESULT Initialize(
  IExchangeClientRequestCallback* piCallback
);

Parameters

  • piCallback
    [in] Pointer to an IExchangeClientRequestCallback implementation provided by application code using the Exchange client library.

    The methods in this instance should respond to status updates as needed by the application.

Return Value

The following table shows the possible return values:

Value Description

E_POINTER

The address in piCallback does not point to a valid object.

The Exchange client library cannot initialize.

OWAEC_E_ALREADYINITIALIZED

This instance of the Exchange client library has already been initialized.

S_OK

The pointer to the callback object was stored successfully.

Requirements

Header iexchangeclient.h, iexchangeclient.idl
Library OWAExchangeClient.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

IExchangeClient
IExchangeClientRequestCallback