Registry Keys Used by the Device Manager
The Device Manager uses registry keys stored in the HKEY_LOCAL_MACHINE\b0 key. The following are the major subkeys of the HKEY_LOCAL_MACHINE\b0 key:
The Active\b0 key contains subkeys that track currently active drivers loaded by the Device Manager. Device driver setup routines should not modify the Active\b0 keyÂ’s contents, nor should they rely on the presence of any specific values within the Active\b0 key.
When a device driver is loaded, the Device Manager passes it the path to its Active key as the dwContext parameter in the device driverÂ’s XXX_Init function. The device driver can rely on the presence of the following values:
Device handle from the RegisterDevice function
Device file name
Registry path within HKEY_LOCAL_MACHINE to the device driver key
The Active\b0 key for PC Card device drivers has the following additional values:
Plug and Play identifier string
Current socket and function pair of the PC Card
Once a device driver is loaded, it can add values to its Active\b0 key. However, the Device Manager deletes the device driver Active\b0 key and any values in it when the device driver is unloaded.
The Builtin\b0 key contains subkeys that govern stream interface driver DLLs provided by the manufacturer of a Windows CEÂ–based platform. As stated, OEMs can implement drivers for certain types of built-in devices, using the stream interface driver model.
The PCMCIA\b0 key contains subkeys related to PC Cards and their stream interface drivers. The most important information in these subkeys is the Plug and Play identifier of the PC Card, which corresponds to a specified driver.
The Detect\b0 subkey contains numbered entries that list DLL names and detection functions. The functions identify a generic stream interface driver for PC Cards with no Plug and Play identifier or PC Cards with an unknown Plug and Play identifier.
subkeys, named after generic PC Card drivers, contain values used to load the drivers. The Device Manager creates individual Driver subkeys when a generic stream interface driver detection function indicates that it can drive a particular device. The existence of a Driver subkey indicates detection by a driver that has an entry within the PCMCIA\b0 key.
subkeys contain values used to load stream interface drivers for PC Cards. Typically, the setup routine for a PC Card driver creates these subkeys when the driver is installed on a platform.