MCPcopy Create free account
hub / github.com/acl-dev/acl / DetourIsHelperProcess

Function DetourIsHelperProcess

lib_fiber/cpp/src/detours/creatwth.cpp:1197–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1195}
1196
1197BOOL WINAPI DetourIsHelperProcess(VOID)
1198{
1199 PVOID pvData;
1200 DWORD cbData;
1201
1202 if (s_fSearchedForHelper) {
1203 return (s_pHelper != NULL);
1204 }
1205
1206 s_fSearchedForHelper = TRUE;
1207 pvData = DetourFindPayloadEx(DETOUR_EXE_HELPER_GUID, &cbData);
1208
1209 if (pvData == NULL || cbData < sizeof(DETOUR_EXE_HELPER)) {
1210 return FALSE;
1211 }
1212
1213 s_pHelper = (PDETOUR_EXE_HELPER)pvData;
1214 if (s_pHelper->cb < sizeof(*s_pHelper)) {
1215 s_pHelper = NULL;
1216 return FALSE;
1217 }
1218
1219 return TRUE;
1220}
1221
1222static
1223BOOL WINAPI AllocExeHelper(_Out_ PDETOUR_EXE_HELPER *pHelper,

Callers

nothing calls this directly

Calls 1

DetourFindPayloadExFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…