mfc >> Devices

by Dmitry » Mon, 01 Dec 2003 20:25:18 GMT

How to enumerate pnp devices by type? Subject of interest -
unknown and unsupported devices?


mfc >> Devices

by CheckAbdoul » Mon, 01 Dec 2003 22:23:27 GMT


Take a look at the set of SetupDiXXXXXX() API's.

--
Cheers
Check Abdoul [VC++ MVP]
-----------------------------------








mfc >> Devices

by Dmitry » Mon, 01 Dec 2003 23:40:40 GMT

It is not decision for me. It'll be working, when drivers
of the device correctly installed. I need to get
information about unknown device. Device without installed
driver.
f.e.
I'm plugging device into the some slot (USB, PCI, etc).
Windows is detecting the "unknown device".
I don't installing any drivers for this device.
Now, I want to get some information about this plugged
device. Device ID for example.

May be this information can be found in the system
registry?....



message

interest -


Similar Threads

1. Enable/Disable Hardware Device (Device Manager) programatically - CSharp/C#

2. Enable/Disable Hardware Device (Device Manager) programaticall

Hi Ignacio,

Thank you fopr your speedy reply! The keyboard works fine with other 
systems, it is one of those unlisted hardware incompatibilites. The keyboard 
also has other problems like the CTRL key not working for multiple 
selections/timing out(Can be resolved by positioning the keyboard closer to 
the receiver than the mouse).

I did start exploring the WMI route and System32_Keyboard API rather limited 
with regards to functional calls.

I'm still looking for some code to enable/disable a hardware deive.

Kind Regards
-- 
In Adversity lies opportunity! - Anonymous


"Ignacio Machin ( .NET/ C# MVP )" wrote:

> HI,
> 
>  The easiest way is to simply buy a new keyboard :) , there is something 
> wrong with the one you have now.
> 
> regarding the device managers handling  you should look into WMI
> 
> 
> -- 
> Ignacio Machin,
> ignacio.machin AT dot.state.fl.us
> Florida Department Of Transportation
> 
> "RootSpy2006" < XXXX@XXXXX.COM > wrote in message 
> news: XXXX@XXXXX.COM ...
> > Hi All,
> >
> > Problem Definition:
> > ---------------------
> > Microsoft Wirelss Keyboard works in BIOS but does not work when booting 
> > into
> > windows.
> >
> > Discovered Work-around:
> > -----------------------------
> > 1.> Open Device Manager(The keyboard device will have an exclamation and
> > will read:"Could not start")
> > 2.> Right-click on the device and select disable.
> > 3.> While hammering and button on the keyboard >> Right click the keyboard
> > icon
> > 4.> Click on enable
> >
> > The device works like this
> >
> > Suggestions Required:
> > --------------------------
> >
> > How can i perfom this process programtically to save the user the hassle?
> >
> > Any code on how to enable/disable a device will be appreciated!
> >
> > Thanx
> >
> > Johann
> >
> > -- 
> > In Adversity lies opportunity! - Anonymous 
> 
> 
> 

3. Enumerating devices: disabled devices not shown - CSharp/C#

4. Enabling/Disabling device programatically like Device manager

Hi all,
	pls pardon me if this question has been asked before, if so, pls kindly 
enlighten me to it. Thanx.

In Windwos Device Manager, you can right click on an installed device, 
say a USB thumbdrive and select Disable in the context menu that pops 
up. The USB device would appear to be unplugged from the system even 
though it is still plugged in. When right clicked to select Enable 
again, it will appear to be plugged in.

I would like to achieve this effect programatically, most likely via 
win32 API. I've been looking around the internet for a solution, but 
have been going in circles.

There are 2 sets of APIs which people have claimed to be able to do 
this, SetupDIxxx set of APIs and cfgmgr32 API. I went through them but 
none has any API that seems to indicate that it can be used to 
Disable/Enable a device.

Could someone pls kindly enlighten me on how i should proceed from here?

Thanx a lot, and happy year of the ox. :)

5. restart the Device ( Time Clock Device ) when ever we push button on that clock - Windows CE

6. How to enable/disable devices in the device manager?

Hello to all the C# gurus :),

I'm interested in whether it's possible to enable and/or disable
devices in the device manager programmatically using C#.  Anybody with
some insight on this? I'm also interested in see if I can role back a
driver using C#. I've seen a way to do it using unmanaged C but would
love to know a way to do it using C# as well.

Thanks,

ks

7. Copy a bitmap from the source device context to this current device context. - Microsoft Visual C++/VC++

8. How can i choose the USB voice device instead of the default microphone and speaker device in MFC programming?

 in one MFC programme,there are two voice device,one is USB  device,the
other is default microphone and speaker,how can i choose the USB voice
device in MFC programming when this programme stared?