1 /*++ 2 3 Copyright (c) Microsoft Corporation 4 5 ModuleName: 6 7 MxMemory.h 8 9 Abstract: 10 11 Mode agnostic definition of memory 12 allocation/deallocation functions 13 14 See MxMemoryKm.h and MxMemoryUm.h for mode 15 specific implementations 16 17 Author: 18 19 20 21 Revision History: 22 23 24 25 --*/ 26 27 #pragma once 28 29 class MxMemory 30 { 31 public: 32 33 __inline 34 static 35 PVOID 36 MxAllocatePoolWithTag( 37 __in POOL_TYPE PoolType, 38 __in SIZE_T NumberOfBytes, 39 __in ULONG Tag 40 ); 41 42 __inline 43 static 44 VOID 45 MxFreePool( 46 __in PVOID Ptr 47 ); 48 }; 49 50