KeyGen API - GenerateKeyFile

GenerateKeyFile


The GenerateKeyFile function is used to generate registration file based on registration information.

  For C/C++:

        int GenerateKeyFile(
KEY_DATA
*pKeyData,
char
*pKeyFileName, // address of buffer for key file path
);

  For Delphi:

       function GenerateKeyFile(
var
pKeyData : TKeyData;
pKeyFileName : PChar // address of buffer for key file path ): Integer;

Parameters

pKeyData

[in] Pointer to an initialised KEY_DATA structure.

pKeyFileName

[in] Pointer to a null-terminated string that specifies the name of the key file.

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