<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Miscellaneous Functions > WLHardwareGetIDW |
The WLHardwareGetIDW retrieves the current hardware ID for the current machine in UNICODE format. This function should be used to retrieve the hardware ID in a machine to create license keys that are locked to a specific machine.
bool WLHardwareGetIDW ( wchar_t* pHardwareId); |
function WLHardwareGetIDW ( pHardwareId:PWideChar ):Boolean; stdcall; |
[C#][DllImport(WINLICENSE_SDK_DLL, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)] public static extern bool WLHardwareGetIDW(StringBuilder HardwareId);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CharSet:=CharSet.Unicode, CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLHardwareGetIDW(HardwareId As StringBuilder) As Boolean End Function |
Parameters
pHardwareId
[out] Pointer to a buffer that will receive a UNICODE 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])
See Also