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

Last reviewed: July 10, 1996
Article ID: Q153383
The information in this article applies to:
  • Microsoft Windows Device Development Kit (DDK) for Windows 95

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


Additional reference words:
KBCategory: kbprg kbhowto
KBSubcategory: ddkmisc



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 10, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.