示例#1
0
 public static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress, SizeT dwSize, uint flAllocationType,
                                            MemPageProtect flProtect);
示例#2
0
 public static extern bool VirtualProtectEx(IntPtr hProcess, IntPtr lpAddress, SizeT dwSize,
                                            MemPageProtect flNewProtect, [Out] out MemPageProtect lpflOldProtect);
示例#3
0
 public static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress, SizeT dwSize, uint flAllocationType,
     MemPageProtect flProtect);
示例#4
0
        public static bool VirtualProtect(this Process process, IntPtr addr, int size, MemPageProtect protect)
        {
            MemPageProtect oldProtect;

            return(WinAPI.VirtualProtectEx(process.Handle, addr, (SizeT)size, protect, out oldProtect));
        }
示例#5
0
 public static extern bool VirtualProtectEx(IntPtr hProcess, IntPtr lpAddress, SizeT dwSize,
     MemPageProtect flNewProtect, [Out] out MemPageProtect lpflOldProtect);