Partager via


Update the Stream Driver Registry File (Compact 2013)

3/26/2014

By default, the stream driver registry file, streamdriver.reg, includes the following registry subkey for its settings: HKEY_LOCAL_MACHINE\Drivers\BuiltIn\StreamDriver.

When Device Manager loads, it enumerates and loads each of the drivers that are located under the registry key HKEY_LOCAL_MACHINE\Drivers\BuiltIn. While you are developing, testing, and debugging your driver, the process is much easier if you load the driver dynamically from your test code. To prevent Device Manager from automatically loading your driver, you must change the path that is specified in streamdriver.reg.

To change the path that is specified in the stream driver registry file

  1. In Windows Explorer, navigate to the folder %_WINCEROOT%\platform\<Your BSP>\src\drivers\streamdriver.

  2. Open streamdriver.reg by using a text editor such as Notepad.

  3. Change the registry subkey HKEY_LOCAL_MACHINE\Drivers\BuiltIn\StreamDriver to the following:

    HKEY_LOCAL_MACHINE\Drivers\StreamDriver

  4. Save streamdriver.reg.

Because you removed the stream driver from the BuiltIn key, Device Manager will no longer load the stream driver at boot time.

Important

After you test and debug your driver, change the path back to its original value so that Device Manager loads the stream driver at boot time.

For more information about registry settings and Device Manager, see Plan Your Device Driver.

See Also

Concepts

Add and Build a Device Driver