2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: GDI Driver Memory Management Functions
5 * FILE: subsys/win32k/eng/mem.c
6 * PROGRAMER: Jason Filby
11 #include <ddk/ntddk.h>
13 PVOID
EngAllocMem(ULONG Flags
, ULONG MemSize
, ULONG Tag
)
17 newMem
= ExAllocatePoolWithTag(PagedPool
, MemSize
, Tag
);
19 if(Flags
== FL_ZERO_MEMORY
)
21 RtlZeroMemory(newMem
, MemSize
);
27 VOID
EngFreeMem(PVOID Mem
)
32 PVOID
EngAllocUserMem(ULONG cj
, ULONG tag
)
36 /* return ZwAllocateVirtualMemory(mycurrentprocess, newMem, 0, cj,
37 MEM_COMMIT, PAGE_READWRITE); */
40 VOID
EngFreeUserMem(PVOID pv
)
42 /* ZwFreeVirtualMemory (mycurrentprocess, pv, 0, MEM_DECOMMIT); */