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

Function w_CreateThreadpoolIo

PoolParty/ThreadPool.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22PFULL_TP_IO w_CreateThreadpoolIo(HANDLE hFile, PTP_WIN32_IO_CALLBACK pCallback, PVOID pContext, PTP_CALLBACK_ENVIRON pCallbackEnviron) {
23 const auto pTpIo = (PFULL_TP_IO)CreateThreadpoolIo(hFile, pCallback, pContext, pCallbackEnviron);
24 if (NULL == pTpIo) {
25 throw std::runtime_error(GetLastErrorString("CreateThreadpoolIo", GetLastError()));
26 }
27 return pTpIo;
28}
29
30PFULL_TP_ALPC w_TpAllocAlpcCompletion(HANDLE hAlpc, PTP_ALPC_CALLBACK pCallback, PVOID pContext, PTP_CALLBACK_ENVIRON pCallbackEnviron)
31{

Callers 1

SetupExecutionMethod · 0.85

Calls 1

GetLastErrorStringFunction · 0.85

Tested by

no test coverage detected