<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialStringWriteW |
The WLTrialStringWriteW function writes a custom string to the Registry. The string is stored using encryption algorithms and the location of the string is different for each computer.
The location of the string also depends on the "Trial Unique Key" in the protected software. If you change the "Trial Unique Key" in your Software and protect again, the strings will be stored in a different Registry location.
NOTE: If StringName starts with "!", the custom string will be stored under HKEY_LOCAL_MACHINE, otherwise it will be stored under HKEY_CURRENT_USER in the Windows Registry.
bool WLTrialStringWriteW( wchar_t* pStringName, wchar_t* pStringValue ); |
function WLTrialStringWriteW( pStringName:PWideChar; pStringValue:PWideChar; ):Boolean; stdcall |
[C#] [DllImport(WINLICENSE_SDK_DLL, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)] public static extern bool WLTrialStringWriteW(string StringName, string StringValue);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CharSet:=CharSet.Unicode, CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialStringWriteW(StringName As String, StringValue As String) As Boolean End Function |
Parameters
pStringName
[in] Name of the string to be accessed.
pStringValue
[in] Value of the string to be stored under StringName.
Return Values
If the function succeeds, the return value is True.
If the writing to the Registry fails, the return value is False.
See Also