public bool VirtualProtect(IntPtr lpAddress, IntPtr dwSize, MemoryProtectionConstraints flNewProtect, out MemoryProtectionConstraints pflOldProtect) { pflOldProtect = CurrentProtectection; HasChanged = CurrentProtectection != flNewProtect; CurrentProtectection = flNewProtect; return true; }