| ... | @@ -2609,7 +2609,7 @@ pub fn DeviceIoControl( | ... | @@ -2609,7 +2609,7 @@ pub fn DeviceIoControl( |
| 2609 | ) DeviceIoControlError!void { | 2609 | ) DeviceIoControlError!void { |
| 2610 | var io_status_block: IO_STATUS_BLOCK = undefined; | 2610 | var io_status_block: IO_STATUS_BLOCK = undefined; |
| 2611 | const rc = switch (io_control_code.DeviceType) { | 2611 | const rc = switch (io_control_code.DeviceType) { |
| 2612 | .FILE_SYSTEM, .NAMED_PIPE => ntdll.NtFsControlFile( | 2612 | else => ntdll.NtDeviceIoControlFile( |
| 2613 | device, | 2613 | device, |
| 2614 | opts.event, | 2614 | opts.event, |
| 2615 | opts.apc_routine, | 2615 | opts.apc_routine, |
| ... | @@ -2621,7 +2621,7 @@ pub fn DeviceIoControl( | ... | @@ -2621,7 +2621,7 @@ pub fn DeviceIoControl( |
| 2621 | if (opts.out.len > 0) opts.out.ptr else null, | 2621 | if (opts.out.len > 0) opts.out.ptr else null, |
| 2622 | @intCast(opts.out.len), | 2622 | @intCast(opts.out.len), |
| 2623 | ), | 2623 | ), |
| 2624 | else => ntdll.NtDeviceIoControlFile( | 2624 | .FILE_SYSTEM => ntdll.NtFsControlFile( |
| 2625 | device, | 2625 | device, |
| 2626 | opts.event, | 2626 | opts.event, |
| 2627 | opts.apc_routine, | 2627 | opts.apc_routine, |