Device Manager Registry Keys (Windows CE 5.0)
Device Manager uses the Active and BuiltIn subkeys of the HKEY_LOCAL_MACHINE\Drivers registry key. Device drivers should never modify the values placed in this part of the registry by Device Manager.
The HKEY_LOCAL_MACHINE\Drivers\Active registry key contains subkeys that track currently active drivers that Device Manager loaded. Device driver setup routines should not modify the Active key's contents, nor should they rely on the presence of any specific values within the Active key other than those listed in the table below. When a driver is loaded, Device Manager passes the path to the driver's Active key with the dwContext parameter to the initialization function. The initialization function can read and create new values in the Active key; however, it is not permitted to access the key after the initialization function returns. The following table shows the subkeys available in the Active registry key.
Subkey | Description |
---|---|
BusDriver | Driver's bus name. The bus driver adds this subkey for its subordinate device. |
BusName | Device's bus name. The bus driver adds this subkey for its subordinate device. |
DevID | Unique device identifier added by Device Manager. Unlike the handle value already in the registry, this value is not reused frequently. |
FullName | Name added by Device Manager and used in conjunction with the \$device namespace. For COM7:, this value is "COM7". For \$device\COM23, this value is "COM23" and there is no "Name" value. |
Name | Device driver's device file name, for example COM1: or SCR7:. Some devices are unnamed and might not contain this value. This subkey is only present for drivers that specify a prefix. For more information on device file names, see Device File Names. |
Order | Bus enumerator examines keys according to the Order value. Order can be any DWORD value. Order values do not have to be sequential, and there can be gaps between Order values. If multiple devices have the same Order, there is no guarantee of the load sequence of devices with the same Order value. |
Key | Registry path to the device. |
PnpId | Plug and Play identifier string. Only present for PC Card drivers. |
Sckt | Current socket and function pair of the PC Card. Only present for PC Card drivers. |
See Also
ActivateDeviceEx | Device File Names | Device Manager | Device Manager Reference | I/O Resource Manager | Resolving Race Conditions in Device Drivers | Stream Interface Drivers
Send Feedback on this topic to the authors