| 28 | } |
| 29 | |
| 30 | PFULL_TP_ALPC w_TpAllocAlpcCompletion(HANDLE hAlpc, PTP_ALPC_CALLBACK pCallback, PVOID pContext, PTP_CALLBACK_ENVIRON pCallbackEnviron) |
| 31 | { |
| 32 | PFULL_TP_ALPC pTpAlpc = { 0 }; |
| 33 | const auto Ntstatus = TpAllocAlpcCompletion(&pTpAlpc, hAlpc, pCallback, pContext, pCallbackEnviron); |
| 34 | if (!NT_SUCCESS(Ntstatus)) |
| 35 | { |
| 36 | throw std::runtime_error(GetLastErrorString("TpAllocAlpcCompletion", RtlNtStatusToDosError(Ntstatus))); |
| 37 | } |
| 38 | |
| 39 | return pTpAlpc; |
| 40 | } |
| 41 | |
| 42 | PFULL_TP_JOB w_TpAllocJobNotification(HANDLE hJob, PVOID pCallback, PVOID pContext, PTP_CALLBACK_ENVIRON pCallbackEnviron) |
| 43 | { |
no test coverage detected