<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegGetLicenseType |
The WLRegGetLicenseType function retrieves a bitmask with the location (File or Registry) and type (Normal Key, Static SmartKey, Dynamic SmartKey) of the current license.
int WLRegGetLicenseType(void); |
function WLRegGetLicenseType():Integer; stdcall; |
Public Declare Function WLRegGetLicenseType Lib "WinLicenseSDK.dll" () As Integer |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern int WLRegGetLicenseType();
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegGetLicenseType() As Integer End Function |
Parameters
This function has no parameters.
Return Values
The return value is a bit mask with the the location and type of the current key:
•Bit 0: Location of license:
0: License is located in a file.
1: License is located in the Registry.
•Bits 1-2: Type of license:
01: Normal license.
10: Static SmartKey.
11: Dynamic SmartKey.