How to avoid hardware arrival/removal sounds?

I have a bus driver which surfaces virtual devices. The PDO’s query device caps is setting SilentInstall to true but you still get the sound every time a device is created. There are no dialogs, so I supposed it is visually “silent”, but is there a way to avoid the audio as well for a truly silent install?

Are they marked as removable?

-----Original Message-----
From: xxxxx@lists.osr.com On Behalf Of xxxxx@gmail.com
Sent: Thursday, June 7, 2018 8:17 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to avoid hardware arrival/removal sounds?

I have a bus driver which surfaces virtual devices. The PDO’s query device caps is setting SilentInstall to true but you still get the sound every time a device is created. There are no dialogs, so I supposed it is visually “silent”, but is there a way to avoid the audio as well for a truly silent install?


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

Yes, they are. Is it that simple? Here are the relevant fields I am setting currently:

pDeviceCapabilities->EjectSupported = TRUE;
pDeviceCapabilities->HardwareDisabled = FALSE;
pDeviceCapabilities->Removable = TRUE;
pDeviceCapabilities->SurpriseRemovalOK = TRUE;
pDeviceCapabilities->RawDeviceOK = FALSE;
pDeviceCapabilities->UniqueID = TRUE;
pDeviceCapabilities->SilentInstall = TRUE;

Changing removable to FALSE seems to have done it. Thank you for the pointer!

Why are they ejectable? By not setting removable they are considered a part of the parent container and it can have other ui side effects.

d

Bent from my phone


From: 30221555500n behalf of
Sent: Thursday, June 7, 2018 8:52 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to avoid hardware arrival/removal sounds?

Yes, they are. Is it that simple? Here are the relevant fields I am setting currently:

pDeviceCapabilities->EjectSupported = TRUE;
pDeviceCapabilities->HardwareDisabled = FALSE;
pDeviceCapabilities->Removable = TRUE;
pDeviceCapabilities->SurpriseRemovalOK = TRUE;
pDeviceCapabilities->RawDeviceOK = FALSE;
pDeviceCapabilities->UniqueID = TRUE;
pDeviceCapabilities->SilentInstall = TRUE;


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

I have set Ejectable to FALSE now that Removable is FALSE. Thanks again.