KeyGen API - VerifyTextKey

VerifyTextKey


The VerifyTextKey function is used to check whether a license key is valid or not.

  For C/C++:

        int VerifyTextKey(
KEY_DATA
*pKeyData,
char
*pKeyText, // address of buffer for key string
);

  For Delphi:

       function VerifyTextKey(
var
pKeyData : TKeyData;
pKeyText : PChar // address of buffer for key string ): Integer;

Parameters

pKeyData

[in] Pointer to an initialised KEY_DATA structure.

pKeyText

[in] Pointer to a key string.

Return Values
If the key is valid, the function returns 1.

If the key is invalid, the function returns zero.

Remarks
The buffer for KEY_DATA(or TKeyData) should be initialized to zero before you use it.
Example
Sample application is located in \Examples\Delphi\KeyGen\ and \Examples\VC\KeyGen\ directory.
 
CopyRight(C) 2003 SDProtector.com All Rights Reserved