

In Windows XP and later versions of Windows, you can also hide broken devices. In Microsoft Windows 2000, you can hide only started, working devices. _STA 0xB // Device present, but not shown _ADR 0xddddffff // dddd = device, ffff = function This bit should be 1 if the device should be made visible and 0 otherwise.įor example, the following code example shows how a USB controller on the root bus would be hidden. Bit 2 (mask 0x4) specifies whether Device Manager should make the device visible by default. The BIOS can expose a _STA method for the device. You can mark a device as hidden in the ACPI BIOS.
Hiide device drivers#
This extra step is required when the underlying bus driver's dispatch routine incorrectly clears all capability fields that other drivers set. In some cases, a bus filter driver might have to set this bit in a completion routine. When the IRP arrives, the driver must set the member to TRUE in the driver's dispatch routine. On Windows XP and later versions of the Windows operating systems, a bus driver or bus filter driver can hide any device, started or otherwise, by responding to the IRP_MN_QUERY_CAPABILITIES IRP. When the IRP arrives, the driver must set the PNP_DEVICE_DONT_DISPLAY_UI bit in IoStatus.Information to TRUE in the driver's dispatch routine. Hiding Devices from Within a Driverĭrivers have two ways to mark a driver as hidden:Ī function driver or function filter driver can ask the operating system to hide a successfully started device by responding to the IRP_MN_QUERY_PNP_DEVICE_STATE IRP. There are two ways to mark your device as hidden: within the device's driver or by using the ACPI BIOS.
Hiide device how to#
For more information about how to override this setting, see Viewing Hidden Devices.) (Note, however, that users can override this setting and display all devices within Device Manager, even hidden ones. Typically, Device Manager does not display hidden devices. To hide a device in Device Manager, you can mark the device as a hidden device. Because the user cannot use the slot, you do not want Device Manager to display any information about the device. For example, a motherboard might have a CardBus controller with a slot that is not user-accessible. In some situations, you might want to prevent certain devices from appearing in Device Manager. By default, Device Manager shows the state of every device on a computer.
