|
本帖最后由 2012win98se 于 2024-11-25 08:20 编辑
这个玩意应该是外网某个叫Beta12的人搞的,他现在的最新版脚本如下(改用VBS了):
- Const HKEY_LOCAL_MACHINE = &H80000002
- strComputer = "." ' Use . for current machine
- hDefKey = HKEY_LOCAL_MACHINE
- strKeyPath = "HARDWARE\DESCRIPTION\System\MultifunctionAdapter\"
- Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
- oReg.EnumKey hDefKey, strKeyPath, arrSubKeys
- For Each s In arrSubKeys
- If oReg.EnumKey(hDefKey, strKeyPath & s & "\RealModeIrqRoutingTable", arrSubKeys) = 0 Then
- x = 1
- End If
- Next
- If x = 1 Then
- Call MsgBox("The RealModeIrqRoutingTable is present" & vbcrlf & "WinXP has been booted with ntldr",options,"Boot mode check")
- Else
- Call MsgBox("No presence of the RealModeIrqRoutingTable" & vbcrlf & "WinXP has been booted with winload.efi or winload.exe",options,"Boot mode check")
- End If
复制代码 |
|