Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi dear
I want only one user has permission to access all USB drive?
I want use C# to do this.
Please Help me.
Posted

1 solution

There are commercial tools which allow you to define which user(s) may access which USB device (any kind of USB device, not only mass storage).

If you want to create it yourself, you'll need to override WndProc. Look at the WM_DEVICECHANGE message, and at DEV_BROADCAST_VOLUME for detecting USB mass storage devices.
 
Share this answer
 
Comments
alireza ghasemi 8-Jul-14 2:23am    
where i can find commercial tools?
would you please introduce to me?
Bernhard Hiller 8-Jul-14 8:59am    
We do not use them, but some of our customers do. Sorry, I do not know more details.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900