Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks the server status according to the specified
URL and RequestType.
Syntax
HRESULT SLGetServerStatus(
[in] PCWSTR pwszServerURL,
[in] PCWSTR pwszAcquisitionType,
[in, optional] PCWSTR pwszProxyServer,
[in, optional] WORD wProxyPort,
[out] HRESULT *phrStatus
);
Parameters
[in] pwszServerURL
Type: PCWSTR
The URL of the server.
[in] pwszAcquisitionType
Type: PCWSTR
The acquisition type.
SL_INFO_KEY_SECURE_PROCESSOR_ACTIVATION_URL (L"SPCURL")
SL_INFO_KEY_RIGHT_ACCOUNT_ACTIVATION_URL (L"RACURL")
SL_INFO_KEY_PRODUCT_KEY_ACTIVATION_URL (L"PKCURL")
SL_INFO_KEY_USE_LICENSE_ACTIVATION_URL (L"EULURL")
SL_INFO_KEY_PRODUCT_ACTIVATION_URL (L"PAURL")
[in, optional] pwszProxyServer
Type: PCWSTR
The proxy server name. Set to NULL for automatic proxy discovery.
[in, optional] wProxyPort
Type: WORD
The proxy server port. Set to 0 to use the default port.
[out] phrStatus
Type: HRESULT*
A pointer to the server status.
Return value
Type: HRESULT WINAPI
If this function succeeds, it return S_OK. Otherwise, it returns an HRESULT error code.
Return code/value | Description |
---|---|
|
One or more arguments are not valid. |
Remarks
Callers can either pass in the URL kept by themselves or get the SKU
specific URL by calling the GetProductSkuInformation function and query each
URL.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | slpublic.h |
Library | Slc.lib |
DLL | Slc.dll |