MCPcopy Create free account
hub / github.com/SafeBreach-Labs/PoolParty / w_TpAllocAlpcCompletion

Function w_TpAllocAlpcCompletion

PoolParty/ThreadPool.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30PFULL_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
42PFULL_TP_JOB w_TpAllocJobNotification(HANDLE hJob, PVOID pCallback, PVOID pContext, PTP_CALLBACK_ENVIRON pCallbackEnviron)
43{

Callers 1

SetupExecutionMethod · 0.85

Calls 1

GetLastErrorStringFunction · 0.85

Tested by

no test coverage detected