KeyGen API - GenerateTextKey

GenerateTextKey


The GenerateTextKey function is used to generate text registration code based on registration information.

  For C/C++:

        int GenerateTextKey(
KEY_DATA
*pKeyData,
char
*pKeyText, // address of buffer for key string
int
iMaxLen // maximum number of characters to copy
);

  For Delphi:

       function GenerateTextKey(
var
pKeyData : TKeyData;
pKeyText : PChar // address of buffer for key string iMaxLen : Integer // maximum number of characters to copy ): Integer;

Parameters

pKeyData

[in] Pointer to an initialised KEY_DATA structure.

pKeyText

[out] points to a buffer, where key string will be copied to.

iMaxLen

[in] sets the maximum numbers of characters to copy.

Return Values
If the function succeeds, the return value is zero.

If the function fails, the return value is nonzero.

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