<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegNormalKeyCheck |
The WLRegNormalKeyCheck validates a text key. This function should be called before installing a text key into the system.
From WinLicense 2.0, if you call this function the registration is performed on the fly and the application will go into registered mode if the key is correct. Notice that if the key contains expiration information, the application needs to be restarted (WLRestartApplication) in order to start the expiration process. If no expiration is inserted in the license, then the registration process is fully performed without having to restart the application.
bool WLRegNormalKeyCheck( const char* pTextKey); |
function WLRegNormalKeyCheck( pTextKey:PAnsiChar ):Boolean; stdcall; |
Public Declare Function WLRegNormalKeyCheck Lib "WinLicenseSDK.dll" ( ByVal pTextKey As String ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLRegNormalKeyCheck(string TextKey);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegNormalKeyCheck(TextKey As String) As Boolean End Function |
Parameters
pTextKey
[in] Pointer to a null-terminated string that specifies the text key to validate.
Return Values
If the text key is valid, the return value is True.
If the text key is invalid, the return value is False.
See Also
WLRegNormalKeyInstallToRegistry, WLRegNormalKeyInstallToFile, WLGenLicenseTextKey