mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 20:34:59 +00:00
[NTOSKRNL] IoGetDeviceProperty: Add support for the DevicePropertyRemovalPolicy property.
This could probably fix CORE-15068.
This commit is contained in:
parent
2a6aa7770e
commit
e32a2cc026
1 changed files with 3 additions and 2 deletions
|
@ -4180,6 +4180,9 @@ IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject,
|
||||||
*ResultLength -= sizeof(OBJECT_NAME_INFORMATION);
|
*ResultLength -= sizeof(OBJECT_NAME_INFORMATION);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case DevicePropertyRemovalPolicy:
|
||||||
|
PIP_RETURN_DATA(sizeof(UCHAR), &DeviceNode->RemovalPolicy);
|
||||||
|
|
||||||
/* Handle the registry-based properties */
|
/* Handle the registry-based properties */
|
||||||
case DevicePropertyUINumber:
|
case DevicePropertyUINumber:
|
||||||
PIP_REGISTRY_DATA(REGSTR_VAL_UI_NUMBER, REG_DWORD);
|
PIP_REGISTRY_DATA(REGSTR_VAL_UI_NUMBER, REG_DWORD);
|
||||||
|
@ -4206,8 +4209,6 @@ IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject,
|
||||||
case DevicePropertyContainerID:
|
case DevicePropertyContainerID:
|
||||||
//PIP_REGISTRY_DATA(REGSTR_VAL_CONTAINERID, REG_SZ); // Win7
|
//PIP_REGISTRY_DATA(REGSTR_VAL_CONTAINERID, REG_SZ); // Win7
|
||||||
PIP_UNIMPLEMENTED();
|
PIP_UNIMPLEMENTED();
|
||||||
case DevicePropertyRemovalPolicy:
|
|
||||||
PIP_UNIMPLEMENTED();
|
|
||||||
break;
|
break;
|
||||||
case DevicePropertyInstallState:
|
case DevicePropertyInstallState:
|
||||||
PIP_REGISTRY_DATA(REGSTR_VAL_CONFIGFLAGS, REG_DWORD);
|
PIP_REGISTRY_DATA(REGSTR_VAL_CONFIGFLAGS, REG_DWORD);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue