Partager via


BinFS Registry Settings (Windows CE 5.0)

Send Feedback

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.

The following table shows the registry settings for the BinFS.

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 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 key example prevents FATFS from attempting to shadow the \Windows directory:

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MsFlash\FATFS]
   "MountAsROM"=dword:0
   "MountHidden"=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. Eliminating the MountHidden value causes the \BINFS directory to be visible to the user. In both cases, you can access the BinFS contents using the \BINFS directory. For versions of Windows CE earlier than 5.0, "MountFlags"= dword:1 has the same effect.

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

Binary Rom Image File System (BinFS) | How to Implement BinFS

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.