• 驱动启动时遇到:打开服务失败(错误码=6):句柄无效 解决方案


    net start 驱动 返回:发生系统错误6 句柄无效

    原文链接:http://blog.csdn.net/tinna_zhang/article/details/17531505

    使用MSDN的VS2015 开发Win10的例子出现下面的情况:

    使用vs2013编译驱动win7 x64 版本,编译之前没有

    Set the KMDF version

    导致错误net start 驱动 返回:。“发生系统错误6 句柄无效”

    文档中说:

    The operating system that you specified in your configuration is called the target operating system. For example, if you specified Win7 Debug in your configuration, your target operating system is Windows 7. In Solution Explorer, right click inspect (the driver project), and choose Properties. Navigate to Configuration Properties > Driver Model Settings. Set KMDF Version Major to 1. Set KMDF Version Minror according to your target operating system.

    Target operating systemKMDF minor version
    Windows 7 9
    Windows 8 11
    Windows 8.1 13

    已成功解决一个问题:又出来另一个问题了:打开服务失败(错误码=1058)无法启动服务,可能是已被禁用或与其相关联的设置没有启动。

    经测试,报上面错误的项目 生成的驱动可加载,入口函数是能进去,预估是其中的一些函数出问题了,再测

    每天进步一点点,有时间先装修空间哈

  • 相关阅读:
    【洛谷P3389】【模板】高斯消元
    【NOIP2016】提高组
    【NOIP2013】提高组
    【NOIP2012】提高组
    【NOIP2011】提高组
    【NOIP2010】提高组
    【NOIP2009】提高组
    【NOIP2008】提高组
    【NOIP2007】提高组
    【51nod 1189】阶乘分数——阶乘质因数分解
  • 原文地址:https://www.cnblogs.com/dhf327/p/4427599.html
Copyright © 2020-2023  润新知