WLRegGetLicenseRestrictions

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Registration Functions >

WLRegGetLicenseRestrictions

The WLRegGetLicenseRestrictions function retrieves a bit mask with the restrictions included in the current license. This function is suitable when you are registering your application with licenses with different registration restrictions (days expiration, executions, date expiration, etc) to know which WinLicense SDK functions you should call for each specific license.

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

 

This function has no parameters.

 

 

Return Values

 

The return value is a bit mask with the license restrictions included in the current license. Current supported values:

 

 

 

Value

 

Meaning

 

wlRegRestrictionDays

0x0001

Days expiration is enabled

 

 

wlRegRestrictionExec

0x0002

Executions expiration is enabled

 

 

wlRegRestrictionDate

0x0004

 

Date expiration is enabled

wlRegRestrictionRuntime

0x0008

 

Runtime restriction is enabled

wlRegRestrictionGlobalTime

0x0010

 

Global time restriction is enabled

wlRegRestrictionCountry

0x0020

 

Country restriction is enabled

wlRegRestrictionHardwareId

0x0040

 

License has hardware ID restriction

wlRegRestrictionNetwork

0x0080

 

Network instances restriction is enabled

wlRegRestrictionInstallDate

0x0100

 

Install before specific date is enabled

wlRegRestrictionCreationDate

0x0200

 

License has its own creation date embedded

 

wlRegRestrictionEmbedUserInfo

0x0400

 

License information is included inside SmarKey license (for Dynamic SmartKeys only)