testwdm3.vbs

来自「windows wdm 设备驱动开发指南(武安河)」· VBS 代码 · 共 25 行

VBS
25
字号
REM Note that missing classes in log file mean tthe hat WMI cannot access them.REM Most likely this indicates a problem with the driver.REM See %windir%\system32\wbem\wmiprov.log and nt eventlog for more details.REM You could also delete the line On Error Resume Next and examine theREM specific VBScript errorOn Error Resume NextSet fso = CreateObject("Scripting.FileSystemObject")Set a = fso.CreateTextFile("hex.log", True)Set Service = GetObject("winmgmts:{impersonationLevel=impersonate}!root/wmi")Rem Wdm3Information - Wdm3 informationSet enumSet = Service.InstancesOf ("Wdm3Information")a.WriteLine("Wdm3Information")for each instance in enumSet    a.WriteLine("    InstanceName=" & instance.InstanceName)    a.WriteLine("        instance.BufferLen=" & instance.BufferLen)    a.WriteLine("        instance.BufferFirstWord=" & instance.BufferFirstWord)    a.WriteLine("        instance.SymbolicLinkName=" & instance.SymbolicLinkName)next 'instancea.CloseWscript.Echo "hex Test Completed, see hex.log for details"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?