I have written a KMDF driver for a device that is reported via ACPI. The Hardware ID is “ACPI/PNP0C02”.
The disadvantage of a hidden device is, that it is only shown in the device manger when the option “Show hidden devices” is checked and the driver can’t be stopped (disabled) or restarted.
Is there a possibility to change the hidden device to a “normal” device or is this not possible with a device that is reported via ACPI?
From: manuel.parfant@br-automation.com Sent: Wednesday, October 28, 2015 6:43 AM To: Windows System Software Devs Interest List Subject: [ntdev] Mark a hidden device as unhidden.
Hello,
I have written a KMDF driver for a device that is reported via ACPI. The Hardware ID is “ACPI/PNP0C02”.
The disadvantage of a hidden device is, that it is only shown in the device manger when the option “Show hidden devices” is checked and the driver can’t be stopped (disabled) or restarted.
Is there a possibility to change the hidden device to a “normal” device or is this not possible with a device that is reported via ACPI?
The device is not hidden and can be disabled. When I disable the device a restart of the PC is necessary. Is it possible to disable the device without a restart? How can I tell the PnP Manger that a restart is not necessary?
From: manuel.parfant@br-automation.com Sent: Thursday, October 29, 2015 1:31 AM To: Windows System Software Devs Interest List Subject: RE:[ntdev] Mark a hidden device as unhidden.
Thank you for your answer. I changed the bits in the device state structure and it works.
The device is not hidden and can be disabled. When I disable the device a restart of the PC is necessary. Is it possible to disable the device without a restart? How can I tell the PnP Manger that a restart is not necessary?
There is no entry in the setupapi.dev.log, but in the setupapi.app.log:
…
I have added an event handler for EvtDeviecQueryRemove and return STATUS_SUCCESS. The event handler will be called but a restart is still necessary.
Yes, because some OTHER driver in the stack is vetoing the request. Is
there an application with an open file handle to your device? That will
prevent removal.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.