| 40 | } |
| 41 | |
| 42 | PFULL_TP_JOB w_TpAllocJobNotification(HANDLE hJob, PVOID pCallback, PVOID pContext, PTP_CALLBACK_ENVIRON pCallbackEnviron) |
| 43 | { |
| 44 | PFULL_TP_JOB pTpJob = { 0 }; |
| 45 | const auto Ntstatus = TpAllocJobNotification(&pTpJob, hJob, pCallback, pContext, pCallbackEnviron); |
| 46 | if (!NT_SUCCESS(Ntstatus)) |
| 47 | { |
| 48 | throw std::runtime_error(GetLastErrorString("TpAllocJobNotification", RtlNtStatusToDosError(Ntstatus))); |
| 49 | } |
| 50 | |
| 51 | return pTpJob; |
| 52 | } |
| 53 | |
| 54 | PFULL_TP_TIMER w_CreateThreadpoolTimer(PTP_TIMER_CALLBACK pTimerCallback, PVOID pTimerContext, PTP_CALLBACK_ENVIRON pCallbackEnviron) { |
| 55 | const auto pTpTimer = (PFULL_TP_TIMER)CreateThreadpoolTimer(pTimerCallback, pTimerContext, pCallbackEnviron); |
no test coverage detected