哎,太长了...au3没有动力搞
给你编个dll吧
#PRE_UseX64=n
Global $Dll_xp_act = DllOpen('xp_act.dll')
Local $IDStr = GetIdFromSystem()
ConsoleWrite('IDStr=' & $IDStr & @CRLF)
Local $confirmation_id = CreateIdFromIID($IDStr)
ConsoleWrite('confirmation_id=' & $confirmation_id & @CRLF)
If PutIdToSystem($confirmation_id) Then
ConsoleWrite('OK' & @CRLF)
Else
ConsoleWrite('FAILED' & @CRLF)
EndIf
Func PutIdToSystem($confirmationId)
Local $Ret = DllCall($Dll_xp_act, 'BOOL', 'PutIdToSystem', 'wstr', $confirmationId)
Return $Ret[0]
EndFunc ;==>PutIdToSystem
Func CreateIdFromIID($installation_id)
Local $Ret = DllCall($Dll_xp_act, 'wstr', 'CreateIdFromIID', 'wstr', $installation_id)
Return $Ret[0]
EndFunc ;==>CreateIdFromIID
Func GetIdFromSystem()
Local $Ret = DllCall($Dll_xp_act, 'wstr', 'GetIdFromSystem')
Return $Ret[0]
EndFunc ;==>GetIdFromSystem
|