Getting a list of hardware devices

This is a discussion on Getting a list of hardware devices within the Windows Programming forums, part of the Platform Specific Boards category; Hi, The first part of my question is : How do I query windows to see if a specific hardware ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    1

    Getting a list of hardware devices

    Hi,
    The first part of my question is : How do I query windows to see if a specific hardware device is installed.

    And the second part is: Is there a way to tell windows to load or unload a particular driver programatically in C++

    Thanks

    Adam

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    How do I query windows to see if a specific hardware device is installed
    A good starting point would be Windows Management Instrumentation (WMI). Check out hardware tasks.
    Is there a way to tell windows to load or unload a particular driver programatically in C++
    First method would be to use SystemLoadAndCallImage which is an undocumented API. Second method would be to use the Service Control Manager to load/unload a device driver.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 11:43 AM
  2. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  3. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 06:46 PM
  4. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 05:20 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 11:21 PM

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