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!
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.
使用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:\Windows\System32\drivers refuses to load due to driver signature enforcement, you should type: “C:\Windows\System32\drivers\ATITool64.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).