Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Acquires a developer license.
Syntax
HRESULT AcquireDeveloperLicense(
[in, optional] HWND hwndParent,
[out] FILETIME *pExpiration
);
Parameters
[in, optional] hwndParent
The handler to the parent window.
[out] pExpiration
Indicates when the developer license expires.
Return value
Returns an HResult structure with any error codes that occurred.
Remarks
The following is a list of common error codes that this function returns:
| Error code | Description |
|---|---|
| S_OK | The function succeeded. |
| E_INVALIDARG | One or more arguments are invalid. |
| E_OUTOFMEMORY | Insufficient memory. |
| HRESULT_FROM_WIN32(ERROR_NOT_FOUND) | The license was not found. |
| HRESULT_FROM_WIN32(ERROR_NOT_AUTHENTICATED) | The call requires authentication. |
| HRESULT_FROM_WIN32(ERROR_NETWORK_UNREACHABLE) | The network can’t be reached. |
| HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) | The caller doesn’t have access to the resource (license). |
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | wsdevlicensing.h |
| Library | wsclient.lib |
| DLL | WSClient.dll |