WLHardwareGetIDW

<< 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.

Click to expand/collapseShow C/C++ function definition
Click to expand/collapseShow Delphi function definition
Click to expand/collapseShow .NET function definition

 

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

 

WLHardwareCheckID, WLHardwareGetFormattedID