| 274 | } |
| 275 | |
| 276 | NTSTATUS CompleteIrp(PIRP Irp, NTSTATUS status = STATUS_SUCCESS, ULONG_PTR info = 0) { |
| 277 | Irp->IoStatus.Status = status; |
| 278 | Irp->IoStatus.Information = info; |
| 279 | IoCompleteRequest(Irp, IO_NO_INCREMENT); |
| 280 | return status; |
| 281 | } |
| 282 | /* |
| 283 | In more complex cases,these could be separate functions, |
| 284 | where in the Create case the driver can (for instance) check to see who the caller is |
no outgoing calls
no test coverage detected