public static BudgetRow BuildAllocationHeader1(Enums.AllocationType allocationType) { BudgetRow retRow = new BudgetRow(); retRow.Column1 = allocationType.ToDisplayName(); retRow.RowType = Enums.TableRowType.header1; retRow.AllocationId = (int)allocationType; return(retRow); }
public static extern IntPtr VirtualAlloc(IntPtr lpAddress, UIntPtr dwSize, Enums.AllocationType lAllocationType, Enums.MemoryProtection flProtect);
public static IntPtr Allocate(uint size, Enums.AllocationType flAllocType = Enums.AllocationType.Commit | Enums.AllocationType.Reserve, Enums.MemoryProtection flMemProtectType = Enums.MemoryProtection.ExecuteReadWrite) => PInvoke.VirtualAlloc(IntPtr.Zero, new UIntPtr(size), flAllocType, flMemProtectType);
internal static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress, IntPtr dwSize, Enums.AllocationType flAllocationType, Enums.MemoryProtection flProtect);