WLTrialCustomCounterSet

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Trial Functions >

WLTrialCustomCounterSet

The WLTrialCustomCounterSet function sets a specific value in a counter. This is a general-purpose function that can be used by applications that needs a global counter to maintain the count of an expirable resource.

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

 

Parameters

 

Value

This parameter specifies the value to set in counter.

 

CounterID

This parameter specifies the counter ID to set.

 

The current version of WinLicense allows 3 different IDs (0, 1, 2). Each CounterID has its own local counter.

 

 

Return Values

 

If the function succeeds, the return value is zero.

 

If the function fails, the return value is wlInvalidCounter.

 

 

See Also

 

WLTrialCustomCounterDec, WLTrialCustomCounter, WLTrialCustomCounterInc