
PC Card Block Device Registry Keys
To detect removable block devices, the Device Manager initiates a detection sequence to determine the specific device type.
The value of the Folder registry subkey under the HKEY_LOCAL_MACHINE\Drivers\PCMCIA\MyDriver registry key is optional. Its value determines the folder names that are associated with file system volumes.
The default value is Storage Card for the first volume, Storage Card2 for the second, and so on.
For example, if you use the value of the Folder registry subkey to change the folder name to My Folder, that is the name of the first device. The second folder is My Folder2, and so on.
The block device driver reads the Folder registry subkey when the file system driver requests a folder name.
The HKEY_LOCAL_MACHINE\Drivers\PCMCIA\Detect\20 registry key is an example. The 20 registry subkey can be any other number. Its value determines the order in which the Device Manager tries the driver's MyDriverDetectdisk function relative to other drivers' detection functions when attempting to identify an unknown type of PC Card.
For more information about the Device Manager, see Device Manager.
The Device Manager requires registry keys to initiate the detection sequence. The following registry key examples show how a PC Card driver named MyDriver uses registry keys:
[HKEY_LOCAL_MACHINE\Drivers\PCMCIA\MyDriver]
"Prefix" = "XXX"
"Dll" = "MyDriver.DLL"
"Index" = DWORD:1
"Order" = DWORD:1
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
[HKEY_LOCAL_MACHINE\Drivers\PCMCIA\Detect\20]
"Dll"="MyDriver.DLL"
"Entry"="MyDriverDetectdisk"