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

This is a discussion on how to add a new device and uninstall it in MFC? within the Windows Programming forums, part of the Platform Specific Boards category; Are there any API's or macros that allow us to add a new device or uninstall it through our program... ...

  1. #1
    V.G
    V.G is offline
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,490
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21