Knowledge Base

How to Use/Replace Windows 95 Hardware Wizard in Custom Code

PSS ID Number: 153383

Article Last Modified on 3/7/1999


The information in this article applies to:


This article was previously published under Q153383

SUMMARY

Someone developing their own setup utility for a hardware device might ask, how to use and or replace the Hardware Wizard in utility source code.

The short answer to emulating Hardware Wizard is that you cannot. The details of all the registry devnodes and entries is not meant to be completely documented. This is true also of the details of how the Hardware Wizard operates on the registry entries that it makes uniquely.

Running the Hardware Wizard is another matter. It is easy to do this in an application by using the WinExec() function to run the following line:
   control.exe sysdm.cpl,Add New Hardware
				

For a general form showing how to run any control applet, please see the "How to Start a Control Panel Applet in Windows 95" article in MSDN Library CD-ROM.

REFERENCES

Windows 95 SDK/DDK/MSDN Library CDs

Keywords: KB153383
Technology: kbAudDeveloper kbWin32DDK95 kbWin32DDKSearch kbWin32sSearch kbWin95search kbWinDDKSearch