Partager via


IExchangeClient::SetServer (Windows Embedded CE 6.0)

1/6/2010

This method sets the URL to the Outlook Web Access (OWA) service running on an Exchange server.

Syntax

HRESULT SetServer(
  const WCHAR* c_wszServername
);

Parameters

  • c_wszServername
    [in] Pointer to a null-terminated string that contains the URL of the OWA service.

    This URL is the same URL you use to access the OWA service with a web browser. For example, this parameter might contain something like one of the following strings:

    • "https://<company name>.com"
    • "http://<internal mail server>"

Return Value

The following table shows the possible return values:

Value Description

E_POINTER

The address in c_wszServername does not point to a valid string.

E_OUTOFMEMORY

Not enough memory was available to store the URL.

OWAEC_E_NOTINITIALIZED

This instance of the Exchange client has not been initialized.

It must be initialized using the IExchangeClient::Initialize method.

S_OK

The URL 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
IExchangeClient::Initialize