Detecting (unknown) hardware in .NET.

I need pointers on how to detect unknown hardware using .NET and C ++ / C #. I'm looking for a technique used in NET to do this.

Basically I want to determine PCIID / USBID, etc. for all equipment on the machine. Of course, I also need this for hardware that doesn't have the driver installed yet.

I suppose it will be in the Windows DDK somewhere, but where to start? Any pointers would be much appreciated.

0


source to share


1 answer


I think you will have a lot of P / Invoke-ing, but I would really start with the WDK (formerly known as DDK).



I would start with an overview devcon.exe

. The binary file matters tools\devcon

; sources are in src\setup\devcon

.

+2


source







All Articles