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.驅(qū)動安裝和打包
【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!
?
驅(qū)動64位的需要簽名,目前只能"禁止系統(tǒng)驅(qū)動簽名強(qiáng)制"進(jìn)行驅(qū)動安裝。以下為官網(wǎng)查詢的資料: 【https://msdn.microsoft.com/en-us/library/windows/hardware/hh454834(v=vs.85).aspx】:Problems installing the driver on 64-bit version of WindowsStarting 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 進(jìn)入"禁止系統(tǒng)驅(qū)動簽名強(qiáng)制": pressing the F8 function key during system boot up Win8?進(jìn)入"禁止系統(tǒng)驅(qū)動簽名強(qiáng)制":使用windows+R鍵調(diào)出運(yùn)行
在命令行中輸入shutdown.exe /r /o /f /t 00后運(yùn)行
接下來系統(tǒng)會重啟,然后進(jìn)入選項(xiàng)頁面
選擇疑難解答
選擇高級選項(xiàng)
然后重啟
接下來你就進(jìn)入了安全模式
用F7選擇禁止驅(qū)動簽名
但是在Win8下面以上方法只能本次啟動生效,下次重啟后驅(qū)動又不能使用。所以可以使用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).
轉(zhuǎn)載于:https://www.cnblogs.com/yinc/p/4397489.html
總結(jié)
以上是生活随笔為你收集整理的Convert Windows 32bit dirver to Windows 64bit的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 50行python代码写个计算器教程
- 下一篇: golang的sync包例子