Home All Groups Group Topic Archive Search About

Listening on USB port

Author
1 Nov 2006 7:10 AM
mikemeamail
Hi all,

Could anybody help me, to know how can we in .Net :

- Detect when a USB key is plugged to a computer
- Know which account is currently accessing the USB drive

I believe i need to create a windows service and propably use remoting.

But i would need someone to point me to the right objects to use in
order to achieve
the final goal.

Any help appreciated,
Thanks in advance
Mike

Author
2 Nov 2006 3:54 PM
Vadym Stetsyak
Hello, mikemeam***@net2000.ch!

You can use WMI provider to accomplish what you want

Have a look at
( http://www.codeproject.com/cs/system/wmiproviderguide.asp?df=100&forumid=24651&exp=0&select=859299 )

m> Could anybody help me, to know how can we in .Net :

m> - Detect when a USB key is plugged to a computer
m> - Know which account is currently accessing the USB drive

m> I believe i need to create a windows service and propably use
m> remoting.

m> But i would need someone to point me to the right objects to use in
m> order to achieve
m> the final goal.

m> Any help appreciated,
m> Thanks in advance
m> Mike


--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

AddThis Social Bookmark Button