How to Configure a Platform to Support a Flash Media Device

By configuring your platform to support a flash media device, you enable your OS to input and output data to flash media. To complete this procedure, you must develop a flash media driver (FMD) for your device and add support for that driver to your platform. Once your have configured your platform to include your FMD, you can then build your platform to support your flash media device.

To track your progress in the following table, select the check box next to each step.

  Step Topic
1. Develop an FMD for your flash media device. How to Develop a Flash Media Driver
2. In the Platform.reg file for your platform, set the appropriate registry information for your FMD.

The following code example shows registry information for a Platform that supports an FMD.

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\<your driver name>]
  Dll="<your dll name>"
  Prefix="DSK"
  \\you can also include settings specific to your driver
Not applicable
3. To have Filesys.exe automatically load your FMD, set the appropriate registry information in the Platform.reg file for your Platform.

The following code example shows registry information for a Platform that automatically loads an FMD block driver.

{HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\<your driver name>]
  DriverPath=drivers\builtin\<your driver name>
  LoadFlags=dword:2
  BootPhase=2
  Order=0

The LoadFlags value can be set to 0, 1, or 2. A value of 1 indicates synchronous loading, a value of 2 indicates Asynchronous loading, while 0 is the default value and indicates Asynchronous loading.

The BootPhase value can be set to 0, 1, or 2. A value of 0 indicates that the FMD is loaded prior to the initialization of the locale. A value of 1 indicates that it is loaded prior to the mounting of a user-hive. A value of 2 indicates that it is loaded after the mounting of a user-hive.

Not applicable
4. Build your platform.

If your platform builds with no errors, you have successfully configured your platform to support a flash media device.

Building a Platform

See Also

Flash Media Drivers | How to Develop a Flash Media Driver

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.