Windows Mobile Version 5.0
Registry Settings for Flash Media Drivers (FMD)
Send Feedback on this topic to the authors
See Also
Mounting a File System as the Root Directory | Storage Manager Registry
Settings | CSIDL_* constants | Implementing Persistent Storage
Windows Mobile-based Device Features > File Systems and Data Store >
File Systems and Data Store OS Design Development > Persistent Storage
> Implementing Persistent Storage
The registry keys for the flash media driver must be in the default
registry so that they are included in the boot hive. To place the FMD
registry keys in the default registry, use the following tags to
enclose the code that sets the FMD registry keys:
; @XIPREGION IF DEFAULT_REGISTRY
; @XIPREGION ENDIF DEFAULT_REGISTRY
The following code example shows how to set the registry keys to
specify an FMD.
; @XIPREGION IF DEFAULT_REGISTRY
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NAND]
"Dll"="nandflash.dll"
"Prefix"="DSK"
"Order"=dword:1
"Ioctl"=dword:4
"Profile"="NAND"
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Build"="0000000"
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NAND]
"DefaultFileSystem"="FATFS"
"PartitionDriver"=""
"Folder"=""
"Name"=""
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NAND\FATFS]
"Flags"=dword:14
"FormatTfat"=dword:1
"MountFlags"=dword:6
"CheckForFormat"=dword:1
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\NAND]
"DriverPath"="Drivers\\BuiltIn\\NAND"
; load synchronously:
"LoadFlags"=dword:1
"Order"=dword:0
"MountAsRoot"=dword:1
"MountAsBootable"=dword:1
"Bootphase"=dword:1
; @XIPREGION ENDIF DEFAULT_REGISTRY
For more information see this Microsoft Web site.