Lines Matching defs:thunks
406 DllInterceptionData* thunks = reinterpret_cast<DllInterceptionData*>(
412 dll_data.used_bytes = offsetof(DllInterceptionData, thunks);
417 // this should write all the individual thunks to the child's memory
418 if (!PatchClientFunctions(thunks, thunk_bytes, &dll_data))
423 bool ok = FALSE != ::WriteProcessMemory(child, thunks, &dll_data,
424 offsetof(DllInterceptionData, thunks),
427 if (!ok || (offsetof(DllInterceptionData, thunks) != written))
430 // Attempt to protect all the thunks, but ignore failure
432 ::VirtualProtectEx(child, thunks, thunk_bytes,
440 bool InterceptionManager::PatchClientFunctions(DllInterceptionData* thunks,
443 DCHECK(NULL != thunks);
522 &thunks->thunks[dll_data->num_thunks],
529 g_originals[it->id] = &thunks->thunks[dll_data->num_thunks];