<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialStringWrite |
The WLTrialStringWrite 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 WLTrialStringWrite( char* pStringName, char* pStringValue ); |
function WLTrialStringWrite( pStringName:PAnsiChar; pStringValue:PAnsiChar; ):Boolean; stdcall; |
Public Declare Function WLTrialStringWrite Lib "WinLicenseSDK.dll" ( ByVal pStringName As String, ByVal pStringValue As String ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] public static extern bool WLTrialStringWrite(string StringName, string StringValue);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialStringWrite(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