Пример #1
0
 internal static UIntPtr VirtualAlloc(uint allocSize, VirtualAllocType allocType, MemoryProtection memoryProtection)
 {
     return(VirtualAlloc(lpAddress: UIntPtr.Zero, new UIntPtr(allocSize), allocType, memoryProtection));
 }
Пример #2
0
 private static extern UIntPtr VirtualAlloc(UIntPtr lpAddress, UIntPtr allocSize, [MarshalAs(UnmanagedType.U4)] VirtualAllocType allocationType, [MarshalAs(UnmanagedType.U4)] MemoryProtection protection);
Пример #3
0
 public static extern VirtualAllocRegion VirtualAlloc(IntPtr address, UIntPtr size, VirtualAllocType allocType, MemoryProtectionType protectionType);