<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Miscellaneous Functions > WLHardwareGetFormattedID |
The WLHardwareGetFormattedID retrieves a formatted hardware ID for the current machine. This function should be used instead of WLHardwareGetID when a developer needs a specially formatted hardware ID in his application.
bool WLHardwareGetFormattedID ( int NumCharsToghether, int Uppercase, char* pHardwareId); |
function WLHardwareGetFormattedID ( NumCharsTogether:Integer; Uppercase:Integer; pHardwareId:PAnsiChar ):Boolean; stdcall;; |
Public Declare Function WLHardwareGetFormattedID Lib "WinLicenseSDK.dll" ( ByVal NumCharsToghether As Integer, ByVal Uppercase As Integer, ByVal pHardwareId As String ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLHardwareGetFormattedID(int NumCharsTogether, int IsUppercase, StringBuilder HardwareId);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLHardwareGetFormattedID(NumCharsTogether As Integer, IsUppercase As Integer, ByRef HardwareId As String) As Boolean End Function |
Parameters
NumCharsTogether
[in] This parameter specifies the number of characters between dashes ('-').
Uppercase
[in] This parameter specifies if the hardware ID must be given in uppercase.
pHardwareId
[out] Pointer to a buffer that will receive a null-terminated string with the formatted 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.
See Also