Hi (whats your name real name?),
well, have a look at this:
[Article ID: 823732 - Last Review: September 15, 2009 - Revision: 6.0
How can I prevent users from connecting to a USB storage device?]
http://support.microsoft.com/kb/823732/en-us
This article does cover windows W2K,XP and 2003 but i am pretty
sure that you can do the same on vista and seven, afaik the WRP
wont step into it, as long as you do that elevated and on admin token!
You can do that easily with Windows Security API within your code,...
Regards
Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project:
http://www.pro-it-education.de/software/deviceremover
Latest Open-Source Projects:
http://entwicklung.junetz.de
-----------------------
"vipink85" <> schrieb im Newsbeitrag
news:F95AB7CB-E16C-46F2-9EB6-...
> Hi!
>
> I am having a problem in handling usb access control. I know we can stop
> the
> USB access by setting '4' in
> "SYSTEM\\CurrentControlSet\\Services\\USBStor" .
> In Vista case, if drivers are not installed and if we connect USb then the
> drivers are isntalled automatically and the above registry value changes
> automatically to '3'.
> Is there any way by which we can avoid installing the drivers? I need to
> do
> it programatically.