WLHardwareGetID The WLHardwareGetID retrieves the current hardware ID for the current machine. This function should be used to retrieve the hardware ID in a machine to create license keys that are locked to a specific machine. Show C/C++ function definition bool WLHardwareGetID ( char* pHardwareId); Show Delphi function definition function WLHardwareGetID ( pHardwareId:PChar ):Boolean; stdcall; Show Visual Basic Native function definition Public Declare Function WLHardwareGetID Lib "WinLicenseSDK.dll" ( ByVal pHardwareId As String ) As Boolean Show .NET function definition [C#] Kernel32.GetEnvironmentVariable("WLHardwareGetID", [out] HardwareID, 100); [Visual Basic] GetEnvironmentVariable("WLHardwareGetID", [out] HardwareID, 100) Parameters pHardwareId [out] Pointer to a buffer that will receive a null-terminated string with the hardware ID for the current machine. Return Values If the function succeeds, the return value is True. If the function fails, the return value is False. Remarks The format of the hardware ID in the current implementation of WinLicense is as follows: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX (where 'X' can be [0-9, A-F])