WLGetLastError

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Miscellaneous Functions >

WLGetLastError

The WLGetLastError function returns extended error information in some validation functions. The current functions that are returning error information are: WLRegSmartKeyCheck, WLRegSmartKeyCheckW, WLRegNormalKeyCheck, WLRegNormalKeyCheckW.

Click to expand/collapseShow C/C++ function definition
Click to expand/collapseShow Delphi function definition
Click to expand/collapseShow Visual Basic Native function definition
Click to expand/collapseShow .NET function definition

 

Parameters

 

This function has no parameters.

 

 

Return Values

 

ERROR CODE

DESCRIPTION

WL_ERROR_SUCCESS (0)

No extended error information for last called function

WL_ERROR_NOT_MATCHING_HARDWARE_ID (1)

The hardware ID in the license does not match the current machine

WL_ERROR_NOT_MATCHING_USER_INFO (2)

The user information in the entered key is incorrect

WL_ERROR_INVALID_KEY (3)

The entered key is incorrect

WL_ERROR_REQUIRED_HARDWARE_ID (4)

The entered key does not contain a hardware ID and hardware ID was forced to be included from the Registration panel (option Allow only hardware dependent (locked) registrations)

WL_ERROR_REQUIRED_EXPIRATION (5)

The entered key does not contain expiration information. Only licenses with expiration information are accepted as it was set in the Registration panel (option "Accept only temporary keys (that expire)")

WL_ERROR_WRONG_KEY_SIZE (6)

The entered key has a wrong size (too big or too small)