Lines Matching refs:thunks
407 DllInterceptionData* thunks = reinterpret_cast<DllInterceptionData*>( in PatchNtdll() local
413 dll_data.used_bytes = offsetof(DllInterceptionData, thunks); in PatchNtdll()
419 if (!PatchClientFunctions(thunks, thunk_bytes, &dll_data)) in PatchNtdll()
424 bool ok = FALSE != ::WriteProcessMemory(child, thunks, &dll_data, in PatchNtdll()
425 offsetof(DllInterceptionData, thunks), in PatchNtdll()
428 if (!ok || (offsetof(DllInterceptionData, thunks) != written)) in PatchNtdll()
433 ::VirtualProtectEx(child, thunks, thunk_bytes, in PatchNtdll()
441 bool InterceptionManager::PatchClientFunctions(DllInterceptionData* thunks, in PatchClientFunctions() argument
444 DCHECK(NULL != thunks); in PatchClientFunctions()
525 &thunks->thunks[dll_data->num_thunks], in PatchClientFunctions()
532 g_originals[it->id] = &thunks->thunks[dll_data->num_thunks]; in PatchClientFunctions()