<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegSmartKeyInstallToRegistryW |
The WLRegSmartKeyInstallToRegistryW installs a SmartActivate® key into a Windows registry key. When this function is called, a Windows registry key (selected in the Winlicense user interface) will be created. This Windows registry key will be able to register the application the next time that is started.
This function should be used when a license has been generated with UNICODE functions.
bool WLRegSmartKeyInstallToRegistryW( const wchar_t* pUserName, const wchar_t* pOrganization, const wchar_t* pCustomData, const wchar_t* pSmartKey ); |
function WLRegSmartKeyInstallToRegistryW( pUserName:PWideChar; pOrganization:PWideChar; pCustomData:PWideChar; pSmartKey:PWideChar ):Boolean; stdcall; |
[C#] [DllImport(WINLICENSE_SDK_DLL, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)] public static extern bool WLRegSmartKeyInstallToRegistryW(string UserName, string Company, string CustomData, string SmartKey);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CharSet:=CharSet.Unicode, CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegSmartKeyInstallToRegistryW(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 Windows registry key.
The name of the Windows registry key 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
WLRegSmartKeyInstallToFileW, WLRegSmartKeyCheckW, WLGenLicenseSmartKey