Preventing Plug and Play
Plug and Play (PnP) functionality allows the driver for a PnP device to be installed immediately after the device is plugged into a computer. For some purposes, for example to increase security, you may want to prevent PnP in your run-time image.
When a PnP device is plugged into a Windows XP Embedded system, if the driver exists on the computer, the device is installed immediately. If the driver does not exist on the system, or if the driver package is not digitally signed, the Found New Hardware Wizard appears to prompt the user for the driver and to assist in the installation.
To prevent a PnP device being installed on an embedded system, you can exclude its driver from the run-time image and also prevent the Found New Hardware Wizard from appearing, so that no drivers can be installed. A registry value can be set to prevent the wizard appearing.
To prevent Plug and Play
- In Target Designer, open your run-time image configuration.
- Ensure that only those device drivers that you want installed on your embedded device are included in the configuration. Remove all others.
- In the configuration editor, expand the node for the SLX file, right-click Extra Registry Data and choose Add. The Add an Extra Registry Entry to the Configuration dialog box appears.
- In the Root list, select HKEY_LOCAL_MACHINE.
- In the Key name box, type
System\CurrentControlSet\Services\PlugPlay\Parametersor choose Browse to navigate to that location.
- In the Value name box, type:
- In the Type list, select REG_DWORD.
- In the Value box, type:
- In the Description box, type a description for this registry value for future reference.
- Choose OK.
© 2006 Microsoft Corporation. All rights reserved.