Lines Matching defs:protection
709 // Change memory protection to writable.
710 DWORD protection = 0;
711 if (!ChangeMemoryProtection(header, patch_length, &protection))
720 // Restore previous memory protection.
721 if (!RestoreMemoryProtection(header, patch_length, protection))
751 // Change memory protection to writable.
752 DWORD protection = 0;
753 if (!ChangeMemoryProtection(old_func, kJumpInstructionLength, &protection))
759 // Restore previous memory protection.
760 if (!RestoreMemoryProtection(old_func, kJumpInstructionLength, protection))
800 // Change memory protection to writable.
801 DWORD protection = 0;
802 if (!ChangeMemoryProtection(header, patch_length, &protection))
809 // Restore previous memory protection.
810 if (!RestoreMemoryProtection(header, patch_length, protection))
855 // Change memory protection to writable.
858 DWORD protection = 0;
859 if (!ChangeMemoryProtection(patch_address, patch_length, &protection))
865 // Restore previous memory protection.
866 if (!RestoreMemoryProtection(patch_address, patch_length, protection))