다음을 통해 공유


IExchangeClient::GetServer (Windows CE 5.0)

Send Feedback

This method provides the server URL set in the most recent call to the IExchangeClient::SetServer method.

HRESULT GetServer(  WCHAR* wszBuffer,   UINT cchBuffer);

Parameters

  • wszBuffer
    [out] Pointer to a caller-allocated buffer that this method uses to store the server URL.
  • cchBuffer
    [in] The size of the buffer represented by the pointer in the wszBuffer parameter.

Return Values

The following table shows possible return values:

Value Description
E_POINTER The address in wszBuffer is not valid.
E_INVALIDARG The size of the provided buffer, according to cchBuffer, is 0.
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 provided successfully.

Requirements

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

See Also

IExchangeClient | IExchangeClient::Initialize | IExchangeClient::SetServer

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.