PnpCleanupDeviceRegistryValues
NTSTATUS __fastcall PnpCleanupDeviceRegistryValues(_UNICODE_STRING *DeviceInstancePath){
__int64 Buffer[3];
Buffer[0] = 0i64;
Buffer[1] = (__int64)DeviceInstancePath;
ExAcquireFastMutex(&Mutex);
RtlDeleteElementGenericTableAvl((PRTL_AVL_TABLE)((char *)&PnpReplaceEvent + 8160), Buffer);
KeReleaseGuardedMutex(&Mutex);
return PpDeviceRegistration(DeviceInstancePath, 0, 0i64, 1u);
}Referenced by:
IoReportDetectedDevice
IoReportRootDevice
PiBuildDeviceNodeInstancePath
PnpUnlinkDeviceRemovalRelations