<< Click to Display Table of Contents >> Navigation: WinLicense > FAQ > General > I want to use the WinLicense SDK in my AutoIt application, but it does not seem to work. Can you help me? |
To use the WinLicense SDK in AutoIt applications, you have the add the following option in the Advanced Options panel:
OPTION_ADVANCED_EXPLICIT_WINLICENSE_SDK=YES
The following code returns the Hardware ID in a compiled AutoIt script:
$parameter, "ptr",DllStructGetPtr($struct), "int", 1024)
$ret = DllCall("lib\WinlicenseSDK.dll","bool", "WLHardwareGetID","ptr", DllStructGetPtr($struct))
$return = DllStructGetData($struct,1)
MsgBox(0,"WLHardwareGetId","Machine ID: " & $return)