2830 views|0 replies

62

Posts

0

Resources
The OP

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?
This post is from Embedded System

Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list