Please help me with AutoMount/AutoPart/AutoFormat in the registry file[Copy link]
I wrote a RAM-based block driver in CE5. Now it can display a drive letter on the CE target board and store files, etc. The following is the registry file for the driver. [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\RamDisk] "Name"="RAM Disk Block Device" ; refers to the name "Folder"="RAM Disk" ; refers to the directory name "DefaultFileSystem"="FATS" ; specifies the file system used by this storage device "PartitionDriver"="mspart.dll" ; specifies the partition driver "AutoMount"=dword:1 ; indicates that the file system will be automatically installed if a partition is detected "AutoPart"=dword:1 ; indicates that if there is no partition, the largest available space will be automatically divided into a partition "AutoFormat"=dword:1 ; indicates that if there is no format, it will be automatically formatted "MountFlags" = dword:0 ; indicates how the file system is not installed. 1 specifies a hidden file system. [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RamDisk] "Prefix"="DSK" "Dll"="ramdisk.dll" "Order"=dword:0 "FriendlyName" = "Windows CE Ramdisk Driver" "Ioctl" = dword:4 "Profile"="RamDisk" "IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}" I want to change this driver to a hard disk driver. So I first remove the formatting subkeys in the registry to: "AutoMount"=dword:1; if a partition is detected, the file system will be automatically installed "AutoPart"=dword:1; if there is no partition, the maximum available space will be automatically divided into a partition "AutoFormat"=dword:0; if there is no formatting, it will be automatically formatted. After compiling, I found that the system can find and run the DLL file. But the drive letter cannot be displayed on the CE target board. And the drive letter will only be displayed when AutoMount/AutoPart/AutoFormat are all 1. What is the reason?