WDF驱动的安装方法:
编译好的SYS文件、INF文件、另外还需要一个WdfCoInstaller01009.dll文件,对应的WDK版本是7600.16385.1这个版本,其中WdfCoInstaller01009.dll文件位于“WDK安装目录” \redist\wdf\x86下,这个动态链接库文件是WDF驱动框架在安装时所必需的一个文件,用于安装驱动框架本身的相关内容。
下面是具体安装的操作步骤:
打开"控制面板"
双击"添加硬件"弹出如下对话框
单击"下一步",弹出如下对话框
选择"是,我已经连接了此硬件"然后再单击"下一步",弹出如下对话框,在列表的最下面有“添加新的硬件设备”项
-选择"添加新的硬件设备"-->"下一步"弹出如下对话框:
选择"安装我手动从列表选择的硬件(高级)(M)"-->"下一步"弹出如下对话框:
-选择"显示所有设备"后单击"下一步"弹出如下对话框:
单击"从磁盘安装"弹出如下打开文件对话框:
单击"浏览"弹出如下对话框:
找到要安装WDF驱动文件路径,选择相应的INF文件“打开”然后点击“确定”单击"下一步"再单击"下一步"最后"完成",弹出如下对话框:
成功安装了WDF驱动。