hi. I made a little tool for getting the hardware ID, the problem is, that number is changed when the user reinstall his pc:
so it seems : DriveGetSerial(@HomeDrive)
is changed if you reinstall :S?
[ autoit ]
#include #include #include #include #include #include #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Hardware ID Tool", 434, 104, 489, 310) GUISetBkColor(0xA6CAF0) $hwid = GUICtrlCreateInput("", 8, 8, 417, 21) $Button1 = GUICtrlCreateButton("Get Hardware ID", 8, 40, 417, 25) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $Button2 = GUICtrlCreateButton("Copy Hardware ID", 8, 68, 417, 25) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetData($hwid, _HWID()) Case $Button2 ClipPut(_HWID()) EndSwitch WEnd Func _GetHWID($sHWID) $sHWID = 'ExampleID' Local $sData = $sHWID & @CRLF Local $aArray = StringSplit($sData, @CRLF) If @error Then Return SetError(1, 0, 0) EndIf Return _ArraySearch($aArray, $sHWID) > -1 EndFunc ;==>_GetHWID Func _HWID() $test = DriveGetSerial(@HomeDrive) $reverse = _StringReverse($test) $doublereverse = _StringEncrypt(1, $reverse, "0x3keEkrjD32") $sHWID = _StringReverse($doublereverse) Return $sHWID EndFunc ;==>_HWID
so it seems : DriveGetSerial(@HomeDrive)
is changed if you reinstall :S?