| 707 | } |
| 708 | |
| 709 | bool isJobHandle(HANDLE h) |
| 710 | { |
| 711 | JOBOBJECT_BASIC_ACCOUNTING_INFORMATION info = {}; |
| 712 | |
| 713 | const auto r = ::QueryInformationJobObject(h, JobObjectBasicAccountingInformation, |
| 714 | &info, sizeof(info), nullptr); |
| 715 | |
| 716 | return r; |
| 717 | } |
| 718 | |
| 719 | Process getProcessTree(HANDLE h) |
| 720 | { |