Trial Functions

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK >

Trial Functions

The following functions can be used to handle the trial period in an application.

 

Function

Description

WLTrialCustomCounter

Retrieves the value of a specific counter

WLTrialCustomCounterDec

Decrements a custom counter by a specific value

WLTrialCustomCounterInc

Increments a custom counter by a specific value

WLTrialCustomCounterSet

Sets a specific value to a custom counter

WLTrialDateDaysLeft

Retrieves the number of trial days left when you are protecting with the option Date Expiration

WLTrialDaysLeft

Retrieves the number of trial days left before expiring.

WLTrialDebugCheck

Checks if the application was protected with the option "Trial Debug Mode" enabled

WLTrialExecutionsLeft

Retrieves the number of trial executions left before expiring.

WLTrialExpirationDate

Retrieves the trial expiration date in an application.

WLTrialExpirationTimestamp

Retrieves the exact expiration timestamp when an application is protected with trial days expiration

WLTrialExpireTrial

Expires the trial period in the current application

WLTrialExtendExpiration

Allows extending the current trial period.

WLTrialExtGetLevel

Retrieves the current trial extension level.

WLTrialExtGetStatus

Retrieves information about a possible trial extension in the current application.

WLTrialFirstRun

Determines if an application is running in trial mode for the first time.

WLTrialGetTrialRestrictions

Retrieves a bit mask with the trial restrictions included in the protected application.

WLTrialGetStatus

Retrieves the trial status in the current application.

WLTrialGlobalTimeLeft

Retrieves the number of minutes left  an application can be executed before expiring.

WLTrialLockedCountry

Retrieves the country code in which an application can be executed in trial mode.

WLTrialRuntimeLeft

Retrieves the runtime left  an application can be running in memory.

WLTrialStringRead

Reads a custom string from the Registry.

WLTrialStringReadW

Reads a custom string (in UNICODE) from the Registry.

WLTrialStringWrite

Writes a custom string to the Registry.

WLTrialStringWriteW

Writes a custom string (in UNICODE) to the Registry.

WLTrialTotalDays

Retrieves the total number of trial days an application can be executed.

WLTrialTotalExecutions

Retrieves the total number of trial executions an application can be executed.