WLTrialStringReadW

<< 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.

Click to expand/collapseShow C/C++ function definition
Click to expand/collapseShow Delphi function definition
Click to expand/collapseShow .NET function definition

 

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

 

WLTrialStringWriteW