- Implement IoReportTargetDeviceChange as a wrapper around the unimplemented IoReportTargetDeviceChangeAsynchronous

svn path=/trunk/; revision=35428
This commit is contained in:
Stefan Ginsberg 2008-08-18 13:31:33 +00:00
parent e3f8231305
commit d94c54c3a7

View file

@ -119,8 +119,27 @@ NTAPI
IoReportTargetDeviceChange(IN PDEVICE_OBJECT PhysicalDeviceObject,
IN PVOID NotificationStructure)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
KEVENT Event;
NTSTATUS Status;
/* Initialize the event */
KeInitializeEvent(&Event, NotificationEvent, FALSE);
/* Call the asynchronous version */
Status = IoReportTargetDeviceChangeAsynchronous(PhysicalDeviceObject,
NotificationStructure,
IopClearEvent,
&Event);
/* Only wait if we succeeded */
if (NT_SUCCESS(Status))
{
/* Wait for it to complete */
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
}
/* Return status */
return Status;
}
/*