private bool UnlockpVTable() { if (!Win32MemoryUtils.VirtualProtect(pVTable, (uint)IntPtr.Size, Win32MemoryUtils.MemoryProtectionConstants.PAGE_EXECUTE_READWRITE, out lpflOldProtect)) { Console.WriteLine(new Win32Exception(Marshal.GetLastWin32Error()).Message); return(false); } return(true); }
private bool LockpVTable() { return(Win32MemoryUtils.VirtualProtect(pVTable, (uint)IntPtr.Size, (Win32MemoryUtils.MemoryProtectionConstants)lpflOldProtect, out lpflOldProtect)); }