예제 #1
0
 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);
 }
예제 #2
0
 private bool LockpVTable()
 {
     return(Win32MemoryUtils.VirtualProtect(pVTable, (uint)IntPtr.Size, (Win32MemoryUtils.MemoryProtectionConstants)lpflOldProtect, out lpflOldProtect));
 }