First, let's see how the disk is hidden: Open the registry and go to the following path:
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer \
Create a new key value nodrives. The key value of this key is the key to hide the drive letter. Below is a hidden value example table (Binary ).
Let me explain it. I also used a lot of time to study it. We should regard these values as four zones, 00 00 00
Drive letter A B C D E F G H
Value: 01000000 02000000 04000000 08000000 10000000 20000000 40000000
Drive letter I j k l m n o p
Value: 00010000 00020000 00040000 00080000 00100000 00200000 00400000
Drive Letter q r s t u v w x
Value: 00000100 00000200 00000400 00000800 00001000 00002000 00004000
Drive letter y z
Value 00000001 00000002
It is known in sequence that the disk drive is incremented by a factor of two in hexadecimal Order (A-Z.
The first zone controls the drive letter a-h, the second zone controls the drive letter I-P, the third zone controls the drive letter q-X, and the fourth zone controls the drive letter Y and Z
All the time is in A multiplier relationship, for example, disk A is 01, disk B is 02, and disk C is 02*2 = 04, but after disk D is 08, because it is a hexadecimal computation (don't tell me you don't know what is a hexadecimal computation), so the 08*2 of an edisk is 16. If you enter one, it will be written as an edisk 10, then go down to drive f 10*2 = 20 .......
To hide two partitions, add the values. For example, to hide both disk A and disk F, the value is 01000000 + 20000000 = 21000000, if you want to hide all the disks in this area, you need to write FF (hexadecimal last bit)
The subsequent disks are computed in the same way. Also, if you write the DWORD Value, You have to reverse it. For example, if disk A needs to be written as 00000001, I want to write an idisk as 00000100. I suggest you try it first, and you will be more impressed.
To display hidden disk partitions, find and delete the NoDrives key value.
For example, hide the Z drive HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer nodrives 00 00 00 02
Note:
Creates a file in binary format;
"00 00" data has been added by default. Ignore this and add "00 00 02" directly ".
Source: http://www.cnblogs.com/wwl188/archive/2007/12/16/996850.html