zoukankan      html  css  js  c++  java
  • Convert Windows 32bit dirver to Windows 64bit


    Pre-condition:
    1.source code(vc6.0+WDK based)

    Development environment:
    2.VS2013
    3.WDK 8/8.1

    Steps:
    1.Create a new project.
    File->New->Visual C++->Windows Driver
    2.Copy .c and .h source code to project
    3.Modify project property
    xxx属性页->配置属性->C/C++->警告等级->等级3


    xxx属性页->配置属性->Wpp Tracing->Run Wpp racing->否


    xxx属性页->配置属性->链接器->输入->附加依赖库->usbdex.lib修改为usbd.lib


    4.Compile it

    5.驱动安装和打包

    【https://msdn.microsoft.com/en-us/library/windows/hardware/dn653560(v=vs.85).aspx】:

    Driver Installation for 32-bit and 64-bit Platforms

    6.done!

    驱动64位的需要签名,目前只能"禁止系统驱动签名强制"进行驱动安装。以下为官网查询的资料:
    https://msdn.microsoft.com/en-us/library/windows/hardware/hh454834(v=vs.85).aspx】:Problems installing the driver on 64-bit version of Windows

    Starting with Windows Vista, all 64-bit versions of Windows require driver code to have a digital signature for the driver to load. See Signing a Driver and Signing a Driver During Development and Testing.

    https://msdn.microsoft.com/en-us/library/windows/hardware/hh454834(v=vs.85).aspx】:
    All drivers running on 64-bit versions of Windows must be signed before Windows will load them. However, driver signing is not required on 32-bit versions of Windows.
     
    Win7 进入"禁止系统驱动签名强制"
      pressing the F8 function key during system boot up
    Win8 进入"禁止系统驱动签名强制"

    使用windows+R键调出运行
    在命令行中输入shutdown.exe /r /o /f /t 00后运行
    接下来系统会重启,然后进入选项页面
    选择疑难解答
    选择高级选项
    然后重启
    接下来你就进入了安全模式
    用F7选择禁止驱动签名

    但是在Win8下面以上方法只能本次启动生效,下次重启后驱动又不能使用。所以可以使用dseo13b.exe工具。

    具体使用方法:http://www.ngohq.com/?page=dseo

    1. Download the application from the link below. Right click on it and choose "Run as administrator". Inside its main menu, press on the “Enable Test Mode” button and follow the instructions on the screen. This will enable TESTSIGNING mode, which allows unverified system files to be loaded.

    2. Now all you have to do is to add the unverified signature to the required system files. To do so press on the “Sign a System File” button from the main menu, and enter specific filename including full path. For example: if ATITool64.sys from C:WindowsSystem32drivers refuses to load due to driver signature enforcement, you should type: “C:WindowsSystem32driversATITool64.sys”, and if you would like to sign more than a single file, just repeat this procedure until you’re done, and finally reboot.

    After you enabled Test Mode and added signatures to the required system files, they should bypass Windows’s driver signature enforcement and load without any issues. However, if for some reason you are interested to revert it, you can re-launch the application, choose “Disable Test Mode” from the main menu, and reboot. If you encounter issues or having questions, feel free to post it on our forums.

    Note: DSEO requires administrative privileges (Run as administrator).

  • 相关阅读:
    存储过程
    需要再研究的题目
    sql(SqlServer)编程基本语法
    sql查询语句
    SQL常用增删改查语句
    SQLserver
    三大范式
    四种约束
    数据库
    学习实践:使用模式,原则实现一个C++自动化测试程序
  • 原文地址:https://www.cnblogs.com/yinc/p/4397489.html
Copyright © 2011-2022 走看看