Share via


BinFS Registry Settings (Windows Embedded CE 6.0)

1/6/2010

The Binary Romimage File System (BinFS) retrieves driver specific settings from the registry.

You can place BinFS settings at two different tiers in the registry hierarchy

  • Root file system key
    Settings made at the root key of the file system registry, HKEY_LOCAL_MACHINE\System\StorageManager\BinFS, apply to every mounted instance of BinFS, unless explicitly overridden by a setting at a lower level. These setting apply to BinFS for all profiles.
  • Profile-specific settings
    Settings made at the Profiles registry subkey, HKEY_LOCAL_MACHINE\System\StorageManager\Profile\MSFlash, apply only to devices that report the profile MSFlash.
Registry value: Type Description

Dll: REG_SZ

Specifies the name of the file system DLL.

Set to "binfs.dll" for BinFS.

FriendlyName: REG_SZ

Specifies a friendly name for the file system.

MountLabel: REG_DWORD

Pulls the volume label and uses it as a mount point.

Paging: REG_DWORD

Controls paging. Set to 1 to enable paging for BinFS.

Util: REG_SZ

Specifies the DLL name of utility to do format and scan.

MountFlags: REG_DWORD

This value is deprecated for Windows CE 5.0 and later. For replacement values, see Mount Settings.

Default BinFS Settings

The following registry key example shows the default values for BinFS.

[HKEY_LOCAL_MACHINE\System\StorageManager\BinFS]
    "FriendlyName"="Bin FileSystem"
    "Dll"="binfs.dll"
    "Paging"=dword:1
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
   "DefaultFileSystem"="BINFS"
   "PartitionDriver"="mspart.dll"
   "MountHidden"=dword:1
   "MountAsROM"=dword:1
   "Folder"="NAND Flash"
   "Name"="FLASH Disk Block Device"

MountHidden and MountAsROM settings apply only to Windows CE 5.0 and later. For versions of Windows Embedded CE earlier than Windows CE 5.0, replace these two settings with

   "MountFlags"=dword:11

As of Windows CE 5.0, the MountFlags registry flag has been deprecated. For more information, see Mount Settings.

Controlling \Windows Directory Shadowing

The following registry keys prevent FATFS from attempting to shadow the \Windows directory.

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
    "MountHidden"=dword:0
    "MountAsROM"=dword:0

A MountAsROM value of dword:1 specifies that you mount the file system as an external ROM file system that shadows the \Windows directory; setting MountAsROM to dword:0 prevents this shadowing. In addition, setting the MountHidden value to dword:0 causes the \BINFS directory to be visible to the user. In both cases, you can access the BinFS contents using the \BINFS directory.

MountHidden and MountAsROM setting apply only to Windows CE 5.0 and later. For earlier versions of Windows Embedded CE, replace MountHidden and MountAsROM with the following registry setting:

"MountFlags"=dword:11

In addition, for Windows CE 5.0 and later, the following registry key example prevents FATFS from attempting to shadow the \Windows directory:

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MsFlash\FATFS]
   "MountFlags"=dword:0

Specifying the Flash Media Driver

The following registry key examples show the necessary settings to specify the Flash Media Driver (FMD), and to allow Storage Manager to load the partitions on the flash memory:

 [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\NAND_Flash]
   "Profile"="MSFlash"
   "IClass"=multi_sz"A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
   "Order"=dword:0
   "FriendlyName"="SD NAND FLASH Driver"
   "Dll"="sdnpcid.dll"
   "Prefix"="DSK"
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\sdnpcid]
   "DriverPath"="Drivers\\BuiltIn\\PCI\\Instance\\NAND_Flash"
   ;LoadFlags 0x01 == load synchronously
   "LoadFlags"=dword:1
   "Order"=dword:0

For more information about the Autoload sub-key, see Autoload Settings.

The following registry key example is necessary for MSPART to recognize the BinFS partition:

[HKEY_LOCAL_MACHINE\System\StorageManager\PartitionTable]
   "20"="BOOT"
   "21"="BINFS"

See Also

Tasks

How to Implement BinFS

Concepts

Binary ROM Iimage File System (BinFS)

Other Resources

Settings for Specific File Systems