64位驱动开发及驱动签名

64位驱动开发及驱动签名方法

1.WINDOWS 64 32程序中数据类型的字节大小基本不变,除了指针变成8字节,其他类型的字节大小和32位一样。 

2.对于64位驱动和32位应用程序之间通讯的数据结构,需要将指针(包括句柄)的定义改为对应的固定长度的指针。比如PCHAR c需要改为 CHAR* POINTER_32 c 

3.64位驱动程序需要由64位的安装程序来安装。在64位系统下,32位安装程序对注册表和文件的访问可能会被重定向到Wow6432Node, SysWOW64之类的路径。

4. 修改INF文件以满足安装64位驱动的要求。http://www.microsoft.com/whdc/archive/64inf_reqs.mspx 

5.64位下编译驱动要用X64编译选项(也就是AMD64 

 

测试驱动签名方法:

使用签名工具dseo13b.exeDriver Signature Enforcement Overrider,启动该工具,点击”Sign a system file”, 然后填入驱动的详细路径,点击确认,稍等一会就可以。 

Supported OSes

* Windows Vista 32-bit

* Windows Vista 64-bit

* Windows Server 2008 32-bit

* Windows Server 2008 64-bit

* Windows 7 32-bit

* Windows 7 64-bit

 

需要购买证书来签名

购买方法可以联系国内代理商,深圳易维信,具体办理流程略,可以联系他们客服。目前可以提供专用签名工具。

详细签名指南请参考:http://www.evtrust.com/support/digital-signatures-for-kernel.html

 

脚本:

 

@echo off

rem ################################

rem 生成CAT文件(如果是32位驱动则把X64换成X86

rem 

rem inf2cat /driver:files//os:XP_X86,Server2003_X86,Vista_X86,Server2008_X86

inf2cat /driver:files/DrvSetup-x64/winVista /os:XP_X64,Server2003_X64,Vista_X64,Server2008_X64

rem ################################

rem sys文件进行签名

rem

signtool.exe sign /ac "MSCV-VSClass3.cer" /s "My" /n"Beijing Venustech Cybervision Co., Ltd" /t"http://timestamp.verisign.com/scripts/timstamp.dll""files\driver-x64\eposfsf.sys"

signtool.exe sign /ac "MSCV-VSClass3.cer" /s "My" /n"Beijing Venustech Cybervision Co., Ltd" /t"http://timestamp.verisign.com/scripts/timstamp.dll""files\driver-x64\eposfsf.cat"

rem ################################

signtool.exe sign /ac "MSCV-VSClass3.cer" /s "My" /n"Beijing Venustech Cybervision Co., Ltd" /t"http://timestamp.verisign.com/scripts/timstamp.dll""files\DrvSetup-x64\winVista\lpsimd.sys"

signtool.exe sign /ac "MSCV-VSClass3.cer" /s "My" /n"Beijing Venustech Cybervision Co., Ltd" /t"http://timestamp.verisign.com/scripts/timstamp.dll""files\DrvSetup-x64\winVista\tdifw_drv.sys"

signtool.exe sign /ac "MSCV-VSClass3.cer" /s "My" /n"Beijing Venustech Cybervision Co., Ltd" /t"http://timestamp.verisign.com/scripts/timstamp.dll" "files\DrvSetup-x64\win2003\netsf.cat"

signtool.exe sign /ac "MSCV-VSClass3.cer" /s "My" /n"Beijing Venustech Cybervision Co., Ltd" /t"http://timestamp.verisign.com/scripts/timstamp.dll""files\DrvSetup-x64\winVista\netsf_m.cat"

pause

 

注释:Beijing Venustech Cybervision Co., Ltd这里是64位驱动签名证书中的名称

      MSCV-VSClass3.cer:交叉根

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Driver Signature Enforcement Overrider Windows測試模式 (win7 64位可用) 無須重啟F8 可去除右下測試模式水印 Enable Test Mode Disable Test Mode Sign a System File ------------------------ Sometimes, the watermark still exists on the desktop after reboot, you need to manually rebuild the MUI cache by: Press key "R" in removeWatermark; Or run "mcbuilder.exe". Remove all Watermark on desktop. Such as "Evaluation Copy", "For testing purpose only", "Test Mode", "Safe Mode". Support: Windows Vista /Server 2008 /Windows 7, 64bit(x64) / 32bit(x86), All Service Pack & all language of Windows. 2009.05.09 V0.8 Download Link 1: RemoveWatermark_20090509.zip http://soft3.wmzhe.com/download/deepxw/RemoveWatermark_20090509.zip Download Link 2: RemoveWatermark_20090509.zip http://soft2.wmzhe.com/download/deepxw/RemoveWatermark_20090509.zip Download Link 3: RemoveWatermark_20090509.zip (Click the link to download) http://filekeeper.org/download/deepxw/RemoveWatermark/RemoveWatermark_20090509.zip It is a universal patch! Without language limited, Supports all language of windows! And without limited of Service Pack. This tool provides two ways to remove the watermark. * The default method, modify user32.dll.mui. This method is safe for all Windows. In 64-bit Vista / Windows 7, It needs Re-Build MUI cache, this will take a few minutes, please wait. * Method 2: modifies user32.dll. 100% remove all watermark. (Run program with argument "-enforce") But don't use Method 2 in Windows 7 6956 / 7000 or later version. It likes a unknown bug in these version of Windows. Any modification with user32.dll in Windows 7 6956 will cause application fail to run in compatibility mode. Notes: 1, Can operate in normal mode. Do not need to enter safe mode. 2, Choose the corresponding patch based on you Windows: For 32bit(x86): RemoveWatermarkX86.exe For 64bit(x64): RemoveWatermarkX64.exe 3, If "Test Mode" still exists on the desktop after reboot, you can run RemoveWatermark and Press key "R" to rebuild MUI cache. Or open command prompt as administrator, run mcbuilder.exe again, then restart computer. 4, Command line / argument usages: -silent Patch in silent mode. -view View the string of user32.dll.mui, don't patch file.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值