Masking a removable drive

A

Alroy

Hello Guys
I am fairly new to programming in Windows.I was in particularly trying
to mask a removable drive attached via the USB port.I tried Googling it
,but it got only values for Win 2000,and Win 98 .In
HKey_Current_User>Software>Microsoft>Windows>CurrentVersion>Policies>Explorer..and
modified the values of the NoDriveAutoRun file of type
REG_DWORD...Various places it was mentioned to change the name of
NoDriveAutoRun to NoDrive and modify the values NoDriveAutoRun decimal
to a string of values in binary......like 00000101 where rightmost
digit if set ,masked the A drive in the My Computer window ,the next
digit fron right the B drive and so on...Else where it was mentioned
that drives values like A drive =1 ,B drive =4 etc similarly H drive
=128.and if we added these values and fed it as a values in decimal to
the NoDrive entry we would mask the particular drives .What are the
values in Win Xp to mask drives...Also can I do this via a few APIs to
mask any removable drive?

Thanks,I look to be enlightened on these issues..
Alroyraj
 
B

Brad Combs

Hello Alroy,

I think you were close with what you were trying in the registry. For
example adding this registry data will hide all drives in explorer:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDrives"=dword:03ffffff

You can reference this article (although specified for NT4 it is the same in
XP, just ignore the system policies part and focus on the actual registry
changes that the adm file is making):
http://support.microsoft.com/default.aspx?scid=kb;en-us;220955

You can also create a component that will add this registry data to the
configuration automatically. Let us know if you need help with that part.
:)

HTH,
Brad
 

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

Top