Device Tree Reenumeration

This is a discussion on Device Tree Reenumeration within the Windows Programming forums, part of the Platform Specific Boards category; I need to refresh the device tree I found an example that does not have headers etc. so I can't ...

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

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

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    26
    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
    611
    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
    26
    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
    26
    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-10-2003, 11:47 PM
  5. Replies: 5
    Last Post: 05-23-2003, 01:11 PM

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