Hi,
I am running WinCE 5.0 with a NAND flash which have 2 partition for
user to use. And now I just want to name them as the 2 partitions as
"Apple" and "Orange"
However, I don't know how should I set the registry.
If I using the following registry, I will only get the name:
"Apple" and "Apple2" by default which same as the help file say:
"Folder" Indicates the base name to use when a volume is mounted on
this store. Default value is "LOC_STORE_DEFAULT_FOLDER".
If the requested name is already in use, then a number is concatenated
to the base name and increased each time.
So is there any API I can rename the partition's folder name? Or there
are some registry setting I can make use of?
Thanks a lot for any help~
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NandFlash]
"Dll"="nandfcd.dll"
"Order"=dword:0
"Prefix"="DSK"
"Profile"="FlashDisk"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"FriendlyName"="NAND FLASH Driver"
; These can overridden in the particular named profile
; Various Flags
; AutoFormat - Formats the store automatically
; AutoPart - Automatically partitions the store with largest
creatable partition
; AutoMount - Automatically Mounts each detected partition (if FSD
driver is available)
; MountFlags (deprecated in WinCE 5.0)- Flags on how the partition
is mounted
; 1 - Hidden file system
; 2 - May contain system registry
; 4 - Mount as root of file system, "\"
; 8 - Hide ROM when mounting FS root
; 10 - Mount filesystem as an external ROM filesystem
; 20 - Treat all files and subdirectories as system files
; The following registry values replace the MountFlags:
; MountHidden - Hidden file system (same as MountFlags=1)
; MountAsBootable - May contain system registry (same as
MountFlags=2)
; MountAsRoot - Mount as root of file system, "\" (same as
MountFlags=4)
; MountAsROM - Mount as an external ROM filesystem (same as
MountFlags=10)
; MountSystem - Treat all files and subdirectories as system
files (same as MountFlags=20)
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
"Name"="NAND FLASH"
"DefaultFileSystem"="FATFS"
"AutoMount"=dword:1
; Auto part and format disk if no partitions are present.
; WARNING! This can cause long boot times when encountering a
fresh disk.
"AutoPart"=dword:1
"AutoFormat"=dword:1
; Default values for fatfs. These can be overridden per profile
; Flags DWORD See available flags below
; Valid Bits for Flags registry value
;FATFS_UPDATE_ACCESS 0x00000001 update access times if
set
;FATFS_DISABLE_LOG 0x00000002 disable event logging if
set
;FATFS_DISABLE_AUTOSCAN 0x00000004 disable automatic
ScanVolume()
;FATFS_VERIFY_WRITES 0x00000008 verify all writes (as
opposed to a handful)
;FATFS_ENABLE_BACKUP_FAT 0x00000010 add a backup FAT to all
formats
;FATFS_FORCE_WRITETHROUGH 0x00000020 Force fat to be always
writethrough
;FATFS_DISABLE_AUTOFORMAT 0x00000040 disable automatic
formatting of unformatted volumes
;FATFS_WFWS_NOWRITETHRU 0x00010000 disable writethrough on
WriteFileWithSeek API,
; improve memory-mapped
file performance
;FATFS_DISABLE_FORMAT 0x00020000 disable format
;FATFS_TRANS_DATA 0x00040000 transact data on a write
(i.e. clone cluster on every write)
;FATFS_TFAT_USECLUS1 0x00080000 Use cluster 1 entry in
FAT table for TFAT transaction.
; By default, TFAT uses the
NOF field of the boot sector
;FATFS_DISABLE_TFAT_REDIR 0x00100000 Indicates to disable
redirect the root directory
; to another hidden
directory for FAT12 or 16,
; since root dir isn't
transacted in those cases
;FATFS_TFAT_ALWAYS 0x00200000 Always mark transaction
status, even only one sector in FAT is changed
;FATFS_FORCE_TFAT 0x00400000 Force TFAT transactioning
even if volume isn't formatted as TFAT
; NOTES: common.reg default is "Flags"=dword:00000064
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
; Override common setting to enable automatic formatting of
unformatted volumes
"Folder"="Apple"
"Flags"=dword:00000024