Thread: Device Tree Reenumeration

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    27

    Device Tree Reenumeration

    I need to refresh the device tree I found an example that
    does not have headers etc. so I can't get it to work.

    Does anyone have any ideas ? What could I try ?

    I can't get this to work
    How To Force Reenumeration of a Device Tree From an Application

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > does not have headers etc. so I can't get it to work.
    > Does anyone have any ideas ? What could I try ?
    Well double-clicking on a function name, then right-click "search using google for ..." works for me.

    Here, try it.
    CM_Locate_DevNode function
    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
    Registered User
    Join Date
    May 2010
    Posts
    27
    I see what your saying, My fault, I should have mentioned that I'm trying to compile
    under Windows 7 using Visual Studio 2010.

    That example will not compile under that OS, it's obsolete.

    Does anyone know of a modern way to refresh the device tree ?

    Thanks for the help !

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    It won't compile because the second printf has two closing brackets. Not sure how that makes it obsolete.

  5. #5
    Registered User
    Join Date
    May 2010
    Posts
    27
    True, but that's not it. The header Cfgmgr32.h has lots
    of compile error that look to be version specific.

  6. #6
    Registered User
    Join Date
    May 2010
    Posts
    27
    I'm trying to force a "Scan for hardware changes" from inside a C# or C++ program under Windows 7 using Visual Studio Pro 2010
    I can't find anything except this obsolete program that runs under Visual C++ 6.0.

    QUESTION:

    Does anyone know how to do this ?

    Thanks,
    Areal

  7. #7
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Have you tried downloading the Windows DDK? It might have the missing files and/or libraries.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can someone explain the USB tree in Device Manager?
    By jrahhali in forum Tech Board
    Replies: 1
    Last Post: 08-30-2011, 02:44 PM
  2. Replies: 2
    Last Post: 08-01-2007, 01:08 PM
  3. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  4. display tree data in binary tree format
    By xddxogm3 in forum C++ Programming
    Replies: 4
    Last Post: 12-11-2003, 12:47 AM
  5. Replies: 5
    Last Post: 05-23-2003, 01:11 PM