Listening on USB port

M

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
 
V

Vadym Stetsyak

Hello, (e-mail address removed)!

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Detect an USB key 2
USB Parallel cable on Router Print Server 1
tiny usb connectors 5
multi port USB hubs question 3
USB/Firewire card 4
Windows 10 Windows 10 Update on a USB 2
A film clip from my USB port? 2
USB port problems... 1

Top