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).

  • 相关阅读:
    ubuntu如何设置Python的版本
    PHP队列之理论篇
    ubuntu系統如何啟動root用戶登陸?
    如何绑定腾讯企业邮箱?
    VMware虚拟机安装Ubuntu并设置root登陆
    毕业生,如何选择高薪资与学习机会?
    如何改变memcached默认的缓存时间?
    PHP常用函数之数组篇
    如何安装并使用bower包依赖工具
    z-score
  • 原文地址:https://www.cnblogs.com/yinc/p/4397489.html
Copyright © 2011-2022 走看看