Title of work: Driver backup program version: 1.1.0.86
Development tools: Borland Delphi 7
Program author: Lin Shijun
----------------------------------
Program introduction:
Driver backup, as the name suggests, is to back up the drivers for each hardware of the operating system;
The program searches for drivers in the system in two ways: 1. Searches for recommended backup drivers (the system does not have its own drivers); 2. Searches for all drivers in the system (drivers that come with the system and those provided by third parties);
Displays the searched drivers in a list, and annotates the driver type and backup suggestions;
By clicking on the driver list item, you can view the detailed information of the driver;
The program introduces plug-in technology (Plugin) to extend the function of the program. The plug-in program is placed in the Plugin folder, with *.Dll as the suffix name; deleting the plug-in will not affect the normal operation of the program.
----------------------------------
Program function implementation principle:
System driver information is saved under HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlClass, and all subkeys in this directory are read to obtain detailed information about all drivers in the system;
The value of InfPath in the registry subkey of each device driver is the driver installation file of the driver, which is stored in the inf folder under the system directory (for example: WINNTinf under Windows 2000 system);
For example, the graphics card driver installation file oem10.inf (for example: WINNTinfoem10.inf under Windows 2000 system), you can find the file containing the graphics card driver from the [SourceDisksFiles] section in the file, and search the system directory to find it. Copy and save it in the specified directory to complete the backup.
----------------------------------
The file contains:
Execution program folder:
DriverBackUp.exe --->Main program (startup program)
PluginCookies_Plugin.dll --->Plug-in (Backup Cookies)
PluginIEFav_Plugin.dll --->Plug-in (backup IE favorites)
PluginRegedit_Plugin.dll --->Plug-in (backup registry)
Source code folder:
DriverBuckUp.dpr --->Main program project file
PluginCookies_Plugin.dpr --->Plug-in (backup Cookies) project file
PluginIEFav_Plugin.dpr --->Plug-in (backup IE favorites) project file
PluginRegedit_Plugin.dpr --->Plug-in (backup registry) project file
----------------------------------
Main program main modules:
//untMain.pas
// main unit
//Program name: Driver backup
----------------------------------
//untPlugin.pas
// Function: Reference the plug-in and implement the plug-in function
----------------------------------
// UntSearchDriver.pas
// Function: Search for drive devices in the system;
----------------------------------
//untBackUpDriver.pas
// Function: Back up driver files;
----------------------------------
//untLoadInfo.pas
// Function: Get drive device information;
----------------------------------
//untReg.pas
// Function: Edit the registry;
----------------------------------
----------------------------------
Program plug-in interface (Delphi):
//Dynamic loading of dynamic link libraries (plug-ins), internal function declarations.
TPluginAbout=procedure(handle:HWND);stdcall; //About plug-in events
TPluginName=function():ShortString;stdcall; //Get the plug-in name
TPluginFormShow=procedure();stdcall; //Open the plug-in window
-------------------------------------------------- -------------
Detailed source program: Please view each unit file (*.pas) with detailed annotations;
Expand