Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 29 of file helper.c.
Referenced by StreamClassStartDevice().
{ KEVENT Event; PSTREAM_DEVICE_EXTENSION DeviceExt; NTSTATUS Status; DeviceExt = (PSTREAM_DEVICE_EXTENSION)DeviceObject->DeviceExtension; /* initialize the notification event */ KeInitializeEvent(&Event, NotificationEvent, FALSE); IoCopyCurrentIrpStackLocationToNext(Irp); IoSetCompletionRoutine(Irp, CompletionRoutine, (PVOID)&Event, TRUE, TRUE, TRUE); /* now call the driver */ Status = IoCallDriver(DeviceExt->LowerDeviceObject, Irp); /* did the request complete yet */ if (Status == STATUS_PENDING) { /* not yet, lets wait a bit */ KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL); Status = Irp->IoStatus.Status; } return Status; }