无法运行具有系统错误6的示例:ERROR_INVALID_HANDLE [英] cannot run the sample with system error 6: ERROR_INVALID_HANDLE
问题描述
我在编写驱动程序和WFP时都是新手,我在Windows过滤平台的技术方面都非常出色。但是,我甚至无法运行论坛中提供的样本。我安装了Visual Studio 2012 RC和WDK 8.微软说,使用最新的VS构建驱动程序更方便
。我的电脑操作系统是windows 7 ultimate X86。我建立了"ddproxy"使用Win7 Debug,X86进行示例。然后通过"ddproxy.inf"将驱动程序安装在我自己的计算机中。文件,由Visual Studio生成。我还改变了
注册表
I'm a newbie in both writting a driver and WFP, I'm intreasted in the technique of windows filtering platform. however, I cannot even run the samples given in the forum. I installed Visual studio 2012 RC and WDK 8. Since microsoft says, it's more convient to build a driver with the newest VS. My computer OS is windows 7 ultimate X86. and I build the "ddproxy" sample with Win7 Debug, X86. then installed the driver in my own computer by the "ddproxy.inf" file, generated by the Visual Studio. And I also changed the registry
HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet \ Services \ ddproxy :
然而,当我尝试运行驱动程序时,系统会回复系统错误:系统错误6, ERROR_INVALID_HANDLE。
however, when I try to run the driver, the system replies that there is a system error: system error 6, ERROR_INVALID_HANDLE .
有谁知道如何解决这个问题?谢谢
推荐答案
尝试将值放在HKEY_LOCAL_MACHINE \SYSTEM \ CurrentControlSet \ Services \ ddproxy \Parameters下\
Try putting the values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ddproxy\Parameters\
o InspectUdp (REG_DWORD) : 0 (ICMP); 1 (UDP, 默认)
o DestinationAddressToIntercept (REG_SZ) : literal IPv4 / IPv6 string
                        (例如 10.0.0.1 ) &
o DestinationPortToIntercept (REG_DWORD) : 适用 如果 InspectUdp 1
&nbs p; o NewDestinationAddress(REG_SZ) : literal IPv4 / IPv6 string
o NewDestinationPort (REG_DWORD)
o InspectUdp (REG_DWORD) : 0 (ICMP); 1 (UDP, default)
o DestinationAddressToIntercept (REG_SZ) : literal IPv4/IPv6 string
(e.g. �10.0.0.1�)
o DestinationPortToIntercept (REG_DWORD) : applicable if InspectUdp is 1
o NewDestinationAddress(REG_SZ) : literal IPv4/IPv6 string
o NewDestinationPort(REG_DWORD)
希望这会有所帮助,
这篇关于无法运行具有系统错误6的示例:ERROR_INVALID_HANDLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!