How to determine New Hardware Found

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am interested in how to determine if a particular type of hardware has been
plugged into Windows XP/2000 programmatically. It could be a service or
application running that could detect the new hardware the way XP and 2000
currently do when new hardware
is found. I am particularly interested in determining if a flash drive was
connected to the system.

Your help is greatly appreciated.
 
This is not something I have done before, but it sounds like a job for WMI
(Windows Management and Instrumentation), which can be accessed through the
System.Management and System.Management.Instrumentation namespaces. For more
general information about WMI, see
http://www.microsoft.com/whdc/system/pnppwr/wmi/default.mspx.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
 
Back
Top