WLRegSmartKeyInstallToFileInFolder

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Registration Functions >

WLRegSmartKeyInstallToFileInFolder

The WLRegSmartKeyInstallToFileInFolder installs a SmartActivate® key into a file in a specific folder. When this function is called, a license file (selected in the Winlicense user interface) will be created. This license file will be able to register the application the next time that it is started.

 

WinLicense will always search for the generated file license in the same folder as the protected application. This function is rarely used but it could be used in specific situations where the license needs to be created in a different drive (like a USB drive) from where the application needs to run.

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

 

pUserName

[in] Pointer to a null-terminated string that specifies the registration name for the SmartActivate® key to install.

 

If this parameter is zero, the generated SmartActivate® key will not have registration name information.

 

pOrganization

[in] Pointer to a null-terminated string that specifies the organization name for the SmartActivate® key to install.

 

If this parameter is zero, the generated SmartActivate® key will not have organization name information.

 

pCustomData

[in] Pointer to a null-terminated string that specifies the custom data for the SmartActivate® key to install.

 

If this parameter is zero, the generated SmartActivate® key will not have custom data information.

 

pSmartKey

[in] Pointer to a null-terminated string that specifies the SmartActivate® key to install into a license file.

 

The name of the license file can be set up in the Winlicense user interface.

 

pFolderPath

[in] Pointer to a null-terminated string that specifies the folder where the file key will be created.

 

 

Return Values

 

If the function succeeds, the return value is True.

 

If the function fails, the return value is False.

 

 

See Also

 

WLRegSmartKeyInstallToRegistry, WLRegSmartKeyCheck, WLGenLicenseSmartKey