![]() ![]() ![]() PRequest->OldRoutine = Io->CompletionRoutine REQUEST_STRUCT *pRequest = (REQUEST_STRUCT*)Io->Context Io->Context = (PVOID)ExAllocatePool(NonPagedPool, sizeof(REQUEST_STRUCT)) If (query->PropertyId = StorageDeviceProperty) PSTORAGE_PROPERTY_QUERY query = (PSTORAGE_PROPERTY_QUERY)Irp->AssociatedIrp.SystemBuffer PIO_STACK_LOCATION Io = IoGetCurrentIrpStackLocation(Irp) NTSTATUS DiskDriverDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp) Irp->IoStatus.Status = STATUS_NOT_SUPPORTED ![]() NTSTATUS SmartCompletionRoutine(PDEVICE_OBJECT DeviceObject, PIRP Irp, PVOID Context) Return OldCompletionRoutine(DeviceObject, Irp, OldContext) If ((Irp->StackCount >(ULONG)1)
0 Comments
Leave a Reply. |