Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenpool.cpp
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS Kernel Streaming 00004 * FILE: drivers/wdm/audio/backpln/portcls/pool.cpp 00005 * PURPOSE: Memory functions 00006 * PROGRAMMER: Johannes Anderwald 00007 */ 00008 00009 #include "private.hpp" 00010 00011 PVOID 00012 AllocateItem( 00013 IN POOL_TYPE PoolType, 00014 IN SIZE_T NumberOfBytes, 00015 IN ULONG Tag) 00016 { 00017 PVOID Item = ExAllocatePoolWithTag(PoolType, NumberOfBytes, Tag); 00018 if (!Item) 00019 return Item; 00020 00021 RtlZeroMemory(Item, NumberOfBytes); 00022 return Item; 00023 } 00024 00025 VOID 00026 FreeItem( 00027 IN PVOID Item, 00028 IN ULONG Tag) 00029 { 00030 00031 ExFreePoolWithTag(Item, Tag); 00032 } Generated on Sun May 27 2012 04:28:35 for ReactOS by
1.7.6.1
|