Thread: how to add a new device and uninstall it in MFC?

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    9

    how to add a new device and uninstall it in MFC?

    Are there any API's or macros that allow us to add a new device or uninstall it through our program... in MFC? if not.. then how does the ADD/Remove harware wizard in control panel work? Thks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Moved - this is windows specific.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    There is the SetupDi API. It is pretty complex and requires the DDK.

Popular pages Recent additions subscribe to a feed