Hi,
I want to hide my device (a virtual SCSI adapter) in device manager.
http://msdn.microsoft.com/library/en-us/install/hh/install/troubleshoot_2puv.asp
suggests that this requires the DN_NO_SHOW_IN_DM bit set in the devnode
status flags. However, the only API I could find that deals with the
DN_* cfgmgr flags is CM_Get_DevNode_Status() which only retrieves the
flags. There doesn’t seem to be a documented API to set the DN_* flags.
The only way to “set” the DN_NO_SHOW_IN_DM flag seems to be a network
driver INF file that includes NCF_HIDDEN in the Characteristics in the
DDInstall section. But that of course won’t work for my SCSI controller.
Anyone knows a way to hide a specific PnP device in device manager?
Thanks!
Ralf.
There is no way in the Scsiport/miniport api to do this. You need to change
the PnP IRP_MN_QUERY_PNP_DEVICE_STATE response from scsiport for the adapter
FDO by adding in PNP_DEVICE_DONT_DISPLAY_IN_UI. Unfortunately, to do this
you would have to write a scsiport FDO filter driver. You might want to
examine the requirement’s validity instead.
=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com
-----Original Message-----
From: Ralf Buschmann [mailto:xxxxx@backmagic.de]
Sent: Thursday, July 10, 2003 10:41 AM
To: NT Developers Interest List
Subject: [ntdev] Hide a device in device manager
Hi,
I want to hide my device (a virtual SCSI adapter) in device manager.
http://msdn.microsoft.com/library/en-us/install/hh/install/troubleshoot_2puv
.asp
suggests that this requires the DN_NO_SHOW_IN_DM bit set in the devnode
status flags. However, the only API I could find that deals with the
DN_* cfgmgr flags is CM_Get_DevNode_Status() which only retrieves the flags.
There doesn’t seem to be a documented API to set the DN_* flags.
The only way to “set” the DN_NO_SHOW_IN_DM flag seems to be a network driver
INF file that includes NCF_HIDDEN in the Characteristics in the DDInstall
section. But that of course won’t work for my SCSI controller.
Anyone knows a way to hide a specific PnP device in device manager?
Thanks!
Ralf.
You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
Mark,
you wrote on Thursday, July 10, 2003, 16:52:32:
RB>> Anyone knows a way to hide a specific PnP device in device manager?
RM> There is no way in the Scsiport/miniport api to do this. You need to
RM> change the PnP IRP_MN_QUERY_PNP_DEVICE_STATE response from scsiport
RM> for the adapter FDO by adding in PNP_DEVICE_DONT_DISPLAY_IN_UI.
RM> Unfortunately, to do this you would have to write a scsiport FDO
RM> filter driver.
Thanks for the hint! The SCSI miniport is a virtual one, it’s not using
the Scsiport sandbox and it already got handlers for the PnP IRPs. Now
it’s easy.
RM> You might want to examine the requirement’s validity instead.
It’s a request from a client, I normally wouldn’t hide it, of course.
Ralf.
First, you need to install your device under a new class and then set the
“NoDisplayClass” in the inf.
“Ralf Buschmann” wrote in message news:xxxxx@ntdev…
>
> Mark,
>
> you wrote on Thursday, July 10, 2003, 16:52:32:
>
> RB>> Anyone knows a way to hide a specific PnP device in device manager?
>
> RM> There is no way in the Scsiport/miniport api to do this. You need to
> RM> change the PnP IRP_MN_QUERY_PNP_DEVICE_STATE response from scsiport
> RM> for the adapter FDO by adding in PNP_DEVICE_DONT_DISPLAY_IN_UI.
> RM> Unfortunately, to do this you would have to write a scsiport FDO
> RM> filter driver.
>
> Thanks for the hint! The SCSI miniport is a virtual one, it’s not using
> the Scsiport sandbox and it already got handlers for the PnP IRPs. Now
> it’s easy.
>
> RM> You might want to examine the requirement’s validity instead.
>
> It’s a request from a client, I normally wouldn’t hide it, of course.
>
> Ralf.
> –
>
>
>
>
“Del Fredricks” wrote in message
news:xxxxx@ntdev…
>
> First, you need to install your device under a new class and then set the
> “NoDisplayClass” in the inf.
>
Well, not really. Note that NoDisplayClass doesn’t really HIDE the
device/class it just causes it not to be displayed by default. To see the
“hidden” devices, you just click “View” and then “Show Hidden Devices” in
device manager.
Peter
OSR