| 574 | } |
| 575 | |
| 576 | bool DriverHelper::Bypass(DWORD flag) { |
| 577 | if (!OpenDevice()) |
| 578 | return false; |
| 579 | |
| 580 | DWORD bytes; |
| 581 | return ::DeviceIoControl(_hDevice, IOCTL_ARK_BYPASS_DETECT, &flag, sizeof(flag), |
| 582 | nullptr, 0, &bytes, nullptr); |
| 583 | } |
| 584 | |
| 585 | bool DriverHelper::Unbypass(DWORD flag) { |
| 586 | if (!OpenDevice()) |
nothing calls this directly
no outgoing calls
no test coverage detected