简体   繁体   中英

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?

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...). 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.

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) .

DevCon Sample

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 enables, disables, installs, configures, and removes devices on the local computer and displays detailed information about devices on local and remote computers. DevCon is included in the Windows DDK.

This should point you to which API's you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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