mirror of
https://github.com/reactos/reactos.git
synced 2024-08-14 07:06:23 +00:00
- Implement IoReportTargetDeviceChange as a wrapper around the unimplemented IoReportTargetDeviceChangeAsynchronous
svn path=/trunk/; revision=35428
This commit is contained in:
parent
e3f8231305
commit
d94c54c3a7
|
@ -119,8 +119,27 @@ NTAPI
|
||||||
IoReportTargetDeviceChange(IN PDEVICE_OBJECT PhysicalDeviceObject,
|
IoReportTargetDeviceChange(IN PDEVICE_OBJECT PhysicalDeviceObject,
|
||||||
IN PVOID NotificationStructure)
|
IN PVOID NotificationStructure)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
KEVENT Event;
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue