mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:33:23 +00:00
[HIDCLASS] Override hid device capabilities
- Disable the Removable capability - Enable the SilentInstall and SurpriseRemovalOK capabilities This keeps the remove device icon from showing in the notification area whenever you plug in a mouse or a keyboard.
This commit is contained in:
parent
5d40ec3e8c
commit
c477928b0e
1 changed files with 8 additions and 0 deletions
|
@ -460,6 +460,14 @@ HidClassPDO_PnP(
|
|||
RtlCopyMemory(IoStack->Parameters.DeviceCapabilities.Capabilities,
|
||||
&PDODeviceExtension->Capabilities,
|
||||
sizeof(DEVICE_CAPABILITIES));
|
||||
|
||||
//
|
||||
// override some capabilities
|
||||
//
|
||||
IoStack->Parameters.DeviceCapabilities.Capabilities->Removable = FALSE;
|
||||
IoStack->Parameters.DeviceCapabilities.Capabilities->SilentInstall = TRUE;
|
||||
IoStack->Parameters.DeviceCapabilities.Capabilities->SurpriseRemovalOK = TRUE;
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue