WLTrialCustomCounter

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Trial Functions >

WLTrialCustomCounter

The WLTrialCustomCounter function retrieves the value of a specific counter. This is a general-purpose function used by applications that need a global counter to maintain the count of an expirable resource. For example, it can be used in an application that allows sending a maximum of 20 emails in trial period. Call this function to know how many emails have been sent.

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

 

CounterID

This parameter specifies the counter ID to retrieve the value from.

 

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 the current value of the specified counter.

 

If the function fails, the return value is -1 (Invalid counter ID).

 

 

See Also

 

WLTrialCustomCounterInc, WLTrialCustomCounterDec, WLTrialCustomCounterSet