1 /*++ 2 3 Copyright (c) Microsoft Corporation 4 5 ModuleName: 6 7 MxMemoryUm.h 8 9 Abstract: 10 11 User mode implementation of memory 12 class defined in MxMemory.h 13 14 Author: 15 16 17 18 Revision History: 19 20 21 22 --*/ 23 24 #pragma once 25 26 #include "MxMemory.h" 27 28 __inline 29 PVOID 30 MxMemory::MxAllocatePoolWithTag( 31 __in POOL_TYPE PoolType, 32 __in SIZE_T NumberOfBytes, 33 __in ULONG Tag 34 ) 35 { 36 UNREFERENCED_PARAMETER(PoolType); 37 UNREFERENCED_PARAMETER(Tag); 38 39 return ::HeapAlloc( 40 GetProcessHeap(), 41 0, 42 NumberOfBytes 43 ); 44 } 45 46 __inline 47 VOID 48 MxMemory::MxFreePool( 49 __in PVOID Ptr 50 ) 51 { 52 ::HeapFree( 53 GetProcessHeap(), 54 0, 55 Ptr 56 ); 57 } 58 59