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


Registry Settings for Storage Manager Profiles (Windows Embedded CE 6.0)

1/6/2010

To configure a storage device in a Windows Embedded CE-based system, a block driver reports that it has a profile in the STORAGEDEVICEINFO structure. The szProfile string retrieves this profile.

The structure is also available in the STOREINFO (Storage Manager) structure returned by the GetStoreInfo function.

Storage Manager stores the reported profile information in the HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\<MyProfileName> registry key.

In addition to information about the device profile, this key contains definitions of the partition table that profiles its use. The partition table stores the relationships between partition identifiers and file system drivers.

The following table shows flags that you can place in the HKEY_LOCAL_MACHINE\System\StorageManager\Profiles registry key.

Flag Description

"AutoFormat"

Formats a store automatically when the store is unformatted. Set to 1 to enable. Set to zero to disable.

"AutoMount"

Automatically mounts each detected partition if the FSD Manager is available.

"AutoPart"

Automatically partitions the store with the largest possible partition.

"DefaultFileSystem"

The default file system to load. This value is only used if the ID value for the partition is not present in the partition ID table for a profile.

"DisableOnSuspend"

Set to zero, the default value, to indicate that the device reporting this profile is not disabled on suspend.

Set to 1 to disable the device reporting the profile on suspend. Use this setting for devices that are deactivated and reactivated by a bus driver.

"Dll"

Module to load for the file system.

"Folder"

Base name to use when a volume is mounted on this store. If a name is in use, a number is concatenated to the base name and increased each time.

"FriendlyName"

Obsolete in Windows Embedded CE 6.0 and later. Descriptive name for the file system.

"MountFlags"

Obsolete in Windows CE 5.0 and later.

Flags that determine how the partition is mounted.

"Name"

Friendly name of the store available in the szStoreName member of the STOREINFO (Storage Manager) structure.

"Paging"

Set to 1, the default value, to enable paging.

Set to zero to disable paging.

"PartitionDriver"

Default partition driver to load. If this string is empty, load the built-in NULL partition driver. There is no partitioning.

Default Settings

The following registry key examples are the default for all profiles; a named profile overrides these values:

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
   "AutoMount"=dword:1
   "AutoPart"=dword:0
   "AutoFormat"=dword:0
   "MountFlags"=dword:0
   "DefaultFileSystem"="FATFS"
   "PartitionDriver"="mspart.dll"
   "Folder"="Mounted Volume"
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\PCMCIA]
   "Name"="PCMCIA/Compact Flash Device"
   "Folder"="Storage Card"
   "AutoMount"=dword:1
   "DefaultFileSystem"="EXFAT"
   "PartitionDriver"="mspart.dll"
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
   "Name"="IDE Hard Disk Drive"
   "Folder"="Hard Disk"
   "AutoMount"=dword:1
   "DefaultFileSystem"="EXFAT"
   "PartitionDriver"="mspart.dll"
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
   "EnableCacheWarm"=dword:0
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMMC] 
   "Name"="SD MMC device"
   "Folder"="SD Card"

The following key designates an NTFS partition with PartitionTable entry value "07", and the instruction to not mount any file system:

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\PartitionTable]
   "07"=""

See Also

Concepts

Storage Manager Registry Settings
Storage Management
File Systems Registry Settings Overview
Storage Management