Lines Matching defs:protection
766 // Change memory protection to writable.
767 DWORD protection = 0;
768 if (!ChangeMemoryProtection(header, patch_length, &protection))
777 // Restore previous memory protection.
778 if (!RestoreMemoryProtection(header, patch_length, protection))
808 // Change memory protection to writable.
809 DWORD protection = 0;
810 if (!ChangeMemoryProtection(old_func, kJumpInstructionLength, &protection))
816 // Restore previous memory protection.
817 if (!RestoreMemoryProtection(old_func, kJumpInstructionLength, protection))
857 // Change memory protection to writable.
858 DWORD protection = 0;
859 if (!ChangeMemoryProtection(header, patch_length, &protection))
866 // Restore previous memory protection.
867 if (!RestoreMemoryProtection(header, patch_length, protection))
912 // Change memory protection to writable.
915 DWORD protection = 0;
916 if (!ChangeMemoryProtection(patch_address, patch_length, &protection))
922 // Restore previous memory protection.
923 if (!RestoreMemoryProtection(patch_address, patch_length, protection))