<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegSmartKeyInstallToFile |
The WLRegSmartKeyInstallToFile installs a SmartActivate® key into a file. 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.
bool WLRegSmartKeyInstallToFile( const char* pUserName, const char* pOrganization, const char* pCustomData, const char* pSmartKey ); |
function WLRegSmartKeyInstallToFile( pUserName:PAnsiChar; pOrganization:PAnsiChar; pCustomData:PAnsiChar; pSmartKey:PAnsiChar ):Boolean; stdcall; |
Public Declare Function WLRegSmartKeyInstallToFile Lib "WinLicenseSDK.dll" ( ByVal pUserName As String, ByVal pOrganization As String, ByVal pCustomData As String, ByVal pSmartKey As String ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLRegSmartKeyInstallToFile(string UserName, string Company, string CustomData, string SmartKey);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegSmartKeyInstallToFile(UserName As String, Company As String, CustomData As String, SmartKey As String) As Boolean End Function |
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.
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