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
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 ...
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
> 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.
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 !
It won't compile because the second printf has two closing brackets. Not sure how that makes it obsolete.
True, but that's not it. The header Cfgmgr32.h has lots
of compile error that look to be version specific.
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
Have you tried downloading the Windows DDK? It might have the missing files and/or libraries.