Lines Matching defs:protection
656 // Change memory protection to writable.
657 DWORD protection = 0;
658 if (!ChangeMemoryProtection(header, patch_length, &protection))
667 // Restore previous memory protection.
668 if (!RestoreMemoryProtection(header, patch_length, protection))
698 // Change memory protection to writable.
699 DWORD protection = 0;
700 if (!ChangeMemoryProtection(old_func, kJumpInstructionLength, &protection))
706 // Restore previous memory protection.
707 if (!RestoreMemoryProtection(old_func, kJumpInstructionLength, protection))
747 // Change memory protection to writable.
748 DWORD protection = 0;
749 if (!ChangeMemoryProtection(header, patch_length, &protection))
756 // Restore previous memory protection.
757 if (!RestoreMemoryProtection(header, patch_length, protection))
802 // Change memory protection to writable.
805 DWORD protection = 0;
806 if (!ChangeMemoryProtection(patch_address, patch_length, &protection))
812 // Restore previous memory protection.
813 if (!RestoreMemoryProtection(patch_address, patch_length, protection))