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...i/default.mspx.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
"icodeurs2" <ic*******@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.com...
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.