<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegGetLicenseHardwareID |
The WLRegGetLicenseHardwareID retrieves the hardware ID in the current license key.
NOTE: This function is not available for SmartKeys due to length optimization in SmartKeys.
bool WLRegGetLicenseHardwareID ( char* pHardwareId); |
function WLRegGetLicenseHardwareID ( pHardwareId:PAnsiChar ):Boolean; stdcall; |
Public Declare Function WLRegGetLicenseHardwareID Lib "WinLicenseSDK.dll" ( ByVal pHardwareId As String ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLRegGetLicenseHardwareID(StringBuilder HardwareId);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegGetLicenseHardwareID(ByRef HardwareId As String) As Boolean End Function |
Parameters
pHardwareId
[out] Pointer to a buffer that will receive a null-terminated string with the hardware ID in the current license key.
Return Values
If the function succeeds, the return value is True.
If the function fails, the return value is False.
Restrictions
This function does not work with Static or Dynamic Smartkeys.
See Also
WLHardwareGetID, WLHardwareCheckID, WLHardwareGetFormattedID