Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static extern IntPtr VirtualAlloc(IntPtr lpAddress, UIntPtr dwSize, Enums.AllocationType lAllocationType, Enums.MemoryProtection flProtect);
Ejemplo n.º 3
0
 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);
Ejemplo n.º 4
0
 internal static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress,
                                              IntPtr dwSize, Enums.AllocationType flAllocationType, Enums.MemoryProtection flProtect);