Partager via


Binary Rom Image File System (BinFS) (Windows CE 5.0)

Send Feedback

The binary ROM Image File System (BinFS) is a file system that reads the binary image (.bin) file format generated by Romimage.exe. The .bin file format organizes data into specific sections. Each section contains a section header that specifies the starting address, length, and checksum values for that section. Romimage.exe writes data organized by logical sections, such as an application's text or .data region, to the .bin file.

To load BinFS on top of a block driver, you must enter the appropriate registry keys in the storage profile of your block driver. For Windows CE 5.0 and later, the following code example shows the registry keys you can add to the storage profile of your block driver to specify that BinFS is the default file system.

[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"
[HKEY_LOCAL_MACHINE\System\StorageManager\BinFS]
    "FriendlyName"="BIN Filesystem"
    "Dll"="binfs.dll"
    "Paging"=dword:1

For versions of Windows CE earlier than 5.0, replace the entries for MountHidden and MountAsROM with the following single value for MountFlags:

    "MountFlags"=dword:11

For more information about replacements for the MountFlags registry value, see XXXX.

In addition to the registry settings shown, you must add a registry key to the FAT file system settings within the storage profile. The default setting for FATFS is for the mount point to be visible to the user. In order to hide the mount point from the user you must add a registry key to prevent the FAT file system from shadowing the Windows directory. The following registry key prevents the FAT file system from attempting to shadow the Windows directory.

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

See Also

BinFS and the Bootpart Library

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.