Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 35 of file faulttol.c.
{ PIRP Irp; KEVENT Event; IO_STATUS_BLOCK IoStatusBlock; NTSTATUS Status; /* Initialize the Local Event */ KeInitializeEvent(&Event, NotificationEvent, FALSE); /* Build the special IOCTL */ Irp = IoBuildDeviceIoControlRequest(FT_BALANCED_READ_MODE, TargetDevice, NULL, 0, NULL, 0, FALSE, &Event, &IoStatusBlock); if (!Irp) return STATUS_INSUFFICIENT_RESOURCES; /* Send it */ Status = IoCallDriver(TargetDevice, Irp); /* Wait if needed */ if (Status == STATUS_PENDING) { Status = KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL); ASSERT(Status == STATUS_SUCCESS); /* Return Status */ Status = IoStatusBlock.Status; } /* Return the status */ return Status; }