다음을 통해 공유


IExchangeClient::SetServer (Windows CE 5.0)

Send Feedback

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

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 Values

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

OS Versions: Windows CE 5.0 and later.
Header: IExchangeClient.h, IExchangeClient.idl.
Link Library: OWAExchangeClient.lib.

See Also

IExchangeClient | IExchangeClient::Initialize

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.