IExchangeClient::GetServer (Windows Embedded CE 6.0)
1/6/2010
This method provides the server URL set in the most recent call to the IExchangeClient::SetServer method.
Syntax
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 Value
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
Header | iexchangeclient.h, iexchangeclient.idl |
Library | OWAExchangeClient.lib |
Windows Embedded CE | Windows CE 5.0 and later |
See Also
Reference
IExchangeClient
IExchangeClient::Initialize
IExchangeClient::SetServer