Поделиться через


Registry Settings for Flash Media Drivers (FMD) (Windows Embedded CE 6.0)

1/6/2010

To implement 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.

The following code example shows how to set the registry keys to specify an FMD.

[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
   "MountFlags"=dword:6
   "Bootphase"=dword:1
; @XIPREGION ENDIF DEFAULT_REGISTRY

As of Windows CE 5.0, the MountFlags registry flag is obsolete. For Windows CE 5.0 and later, replace "MountFlags"=dword:6 with the following settings:

    "MountAsBootable"=dword:1
    "MountAsRoot"=dword:1

For more information about flags for configuring a volume mount, see Mount Settings. For more information about file system registry settings, see File Systems Registry Settings Overview.

See Also

Concepts

Implementing Persistent Storage on Flash Media
Storage Manager Registry Settings