<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialStringReadW |
The WLTrialStringReadW function reads a custom string from 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 WLTrialStringReadW( wchar_t* pStringName, wchar_t* pStringValue ); |
function WLTrialStringReadW( pStringName:PWideChar; pStringValue:PWideChar; ):Boolean; stdcall; |
[C#] [DllImport(WINLICENSE_SDK_DLL, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)] public static extern bool WLTrialStringReadW(string StringName, StringBuilder StringValue);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CharSet:=CharSet.Unicode, CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialStringReadW(StringName As String, ByRef StringValue As String) As Boolean End Function) |
Parameters
pStringName
[in] Name of the string to be accessed.
pStringValue
[out] Value of the string stored under StringName.
Return Values
If the function succeeds, the return value is True.
If the StringName does not exist, the return value is False. Notice that if you have a value stored under "StringName" and you change the Trial Unique Key, the location of "StringName" will be different, hence this function will return False as the location for "StringName" is empty.
See Also