WLHardwareGetID

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Miscellaneous Functions >

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.

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

 

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])

 

 

See Also

 

WLHardwareCheckID, WLHardwareGetFormattedID