<< Click to Display Table of Contents >> Navigation: WinLicense > FAQ > Hardware Lock > Is it possible to lock an application to multiple machines with Hardware Lock? |
The Hardware Lock feature allows you to lock a specific license to a single machine. There is not a direct way put multiple hardware IDs on a single license. You could do the following workaround:
1) Get the Hardware ID of each machine that you want (calling WLHardwareGetId)
2) Create a new license and in the "Custom Data" field you insert a string containing all your Hardware IDs (for all your wanted machines)
3) In runtime, you call "WLRegGetLicenseInfo" and you read the "Custom Data" field, so you compare the current Hardware ID (via WLHardwareGetId) with all the hardware IDs that are embedded in the "Custom Data" field. So, you allow execution or not.