Lines Matching refs:protection
778 DWORD protection = 0; in OverrideFunctionWithDetour() local
779 if (!ChangeMemoryProtection(header, patch_length, &protection)) in OverrideFunctionWithDetour()
789 if (!RestoreMemoryProtection(header, patch_length, protection)) in OverrideFunctionWithDetour()
820 DWORD protection = 0; in OverrideFunctionWithRedirectJump() local
821 if (!ChangeMemoryProtection(old_func, kJumpInstructionLength, &protection)) in OverrideFunctionWithRedirectJump()
828 if (!RestoreMemoryProtection(old_func, kJumpInstructionLength, protection)) in OverrideFunctionWithRedirectJump()
869 DWORD protection = 0; in OverrideFunctionWithHotPatch() local
870 if (!ChangeMemoryProtection(header, patch_length, &protection)) in OverrideFunctionWithHotPatch()
878 if (!RestoreMemoryProtection(header, patch_length, protection)) in OverrideFunctionWithHotPatch()
926 DWORD protection = 0; in OverrideFunctionWithTrampoline() local
927 if (!ChangeMemoryProtection(patch_address, patch_length, &protection)) in OverrideFunctionWithTrampoline()
934 if (!RestoreMemoryProtection(patch_address, patch_length, protection)) in OverrideFunctionWithTrampoline()