xref: /reactos/drivers/base/condrv/heap.h (revision c2c66aff)
1*c2c66affSColin Finck /*
2*c2c66affSColin Finck  * COPYRIGHT:       See COPYING in the top level directory
3*c2c66affSColin Finck  * PROJECT:         ReactOS Console Driver
4*c2c66affSColin Finck  * FILE:            drivers/base/condrv/heap.h
5*c2c66affSColin Finck  * PURPOSE:         Heap Helpers
6*c2c66affSColin Finck  * PROGRAMMERS:     Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7*c2c66affSColin Finck  */
8*c2c66affSColin Finck 
9*c2c66affSColin Finck #pragma once
10*c2c66affSColin Finck 
11*c2c66affSColin Finck #define ConDrvAllocPoolNonPageable(Flags, Size, Tag)   \
12*c2c66affSColin Finck     __pragma(message("WARNING - Flags parameter ignored. You may encounter problems!")) \
13*c2c66affSColin Finck     ExAllocatePoolWithTag(NonPagedPool, Size, Tag)
14*c2c66affSColin Finck 
15*c2c66affSColin Finck #define ConDrvAllocPoolPageable(Flags, Size, Tag)  \
16*c2c66affSColin Finck     __pragma(message("WARNING - Flags parameter ignored. You may encounter problems!")) \
17*c2c66affSColin Finck     ExAllocatePoolWithTag(PagedPool, Size, Tag)
18*c2c66affSColin Finck 
19*c2c66affSColin Finck #define ConDrvFreePool(PoolBase, Tag)   \
20*c2c66affSColin Finck     ExFreePoolWithTag(PoolBase, Tag)
21*c2c66affSColin Finck 
22*c2c66affSColin Finck /* EOF */
23