AcquireDeveloperLicense function

Acquires a developer license.

Syntax


STDAPI AcquireDeveloperLicense(
  _In_opt_ HWND     hwndParent,
  _Out_    FILETIME *pExpiration
);

Parameters

hwndParent [in, optional]

The handler to the parent window.

pExpiration [out]

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 codeDescription
S_OKThe function succeeded.
E_INVALIDARGOne or more arguments are invalid.
E_OUTOFMEMORYInsufficient 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

DLL

WSClient.dll

 

 

Community Additions

ADD
Show: