简体   繁体   English

如何使用Delphi备份Windows驱动程序

[英]How to backup a Windows driver using Delphi

Can someone please help me and tell me how I can backup a Windows driver programmatically using Delphi? 有人可以帮助我,告诉我如何使用Delphi以编程方式备份​​Windows驱动程序?

Any code samples, links to articles are highly appreciated 任何代码示例,文章链接都非常感谢

Thanks for your time 谢谢你的时间

Installing a Windows driver (and having Windows backup the previous one) requires to follow some rules you can find for example here and here (not difficult to find...). 安装Windows驱动程序(并使Windows备份前一个)需要遵循一些您可以找到的规则,例如此处此处 (不难找到...)。 You can also create a restore point, if needed. 如果需要,您还可以创建还原点。 Anyway you should explain if you'd like to "backup" a driver because you're installing a new one (and let Windows take care of it), or you just need to "backup" drivers even if the system is unmodified, to a device of your choice. 无论如何你应该解释你是否想要“备份”一个驱动程序,因为你正在安装一个新驱动程序(让Windows负责),或者你只需​​要“备份”驱动程序即使系统未经修改,也要您选择的设备。

Take a look at the source of the DevCon utility which is included in the Windows Driver Kit (WinDDK) for Windows 2008 R2/Windows 7 (7.1.0) . 请查看适用于Windows 2008 R2 / Windows 7(7.1.0)Windows驱动程序工具包(WinDDK)中包含的DevCon实用程序的源代码。

DevCon Sample DevCon示例

DEVCON DEVCON

DevCon is a command-line tool that displays detailed information about devices, and lets you search for and manipulate devices from the command line. DevCon是一个命令行工具,可显示有关设备的详细信息,并允许您从命令行搜索和操作设备。 DevCon enables, disables, installs, configures, and removes devices on the local computer and displays detailed information about devices on local and remote computers. DevCon在本地计算机上启用,禁用,安装,配置和删除设备,并显示有关本地和远程计算机上设备的详细信息。 DevCon is included in the Windows DDK. Windows DDK中包含DevCon。

This should point you to which API's you need. 这应该指向您需要的API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM