Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

pool.c File Reference

#include "precomp.h"

Go to the source code of this file.

Functions

PVOID Win32AllocPoolWithTagZInit (SIZE_T uBytes, ULONG uTag)
PVOID Win32AllocPoolWithQuotaTagZInit (SIZE_T uBytes, ULONG uTag)
PVOID UserReAllocPoolWithTag (PVOID pSrc, SIZE_T uBytesSrc, SIZE_T uBytes, ULONG iTag)
PVOID UserReAllocPoolWithQuotaTag (PVOID pSrc, SIZE_T uBytesSrc, SIZE_T uBytes, ULONG iTag)
PVOID UserRtlAllocMem (SIZE_T uBytes)
VOID UserRtlFreeMem (PVOID pMem)

Variables

BOOL gdwPoolFlags


Function Documentation

PVOID UserReAllocPoolWithQuotaTag PVOID  pSrc,
SIZE_T  uBytesSrc,
SIZE_T  uBytes,
ULONG  iTag
 

Definition at line 118 of file w32/ntuser/kernel/pool.c.

References NULL.

00123 { 00124 PVOID pDest; 00125 00126 pDest = UserAllocPoolWithQuota(uBytes, iTag); 00127 if (pDest != NULL) { 00128 00129 /* 00130 * If the block is shrinking, don't copy too many bytes. 00131 */ 00132 if (uBytesSrc > uBytes) 00133 uBytesSrc = uBytes; 00134 00135 RtlCopyMemory(pDest, pSrc, uBytesSrc); 00136 00137 UserFreePool(pSrc); 00138 } 00139 00140 return pDest; 00141 }

PVOID UserReAllocPoolWithTag PVOID  pSrc,
SIZE_T  uBytesSrc,
SIZE_T  uBytes,
ULONG  iTag
 

Definition at line 92 of file w32/ntuser/kernel/pool.c.

References NULL.

00097 { 00098 PVOID pDest; 00099 00100 pDest = UserAllocPool(uBytes, iTag); 00101 if (pDest != NULL) { 00102 00103 /* 00104 * If the block is shrinking, don't copy too many bytes. 00105 */ 00106 if (uBytesSrc > uBytes) { 00107 uBytesSrc = uBytes; 00108 } 00109 00110 RtlCopyMemory(pDest, pSrc, uBytesSrc); 00111 00112 UserFreePool(pSrc); 00113 } 00114 00115 return pDest; 00116 }

PVOID UserRtlAllocMem SIZE_T  uBytes  ) 
 

Definition at line 147 of file w32/ntuser/kernel/pool.c.

00149 { 00150 return UserAllocPool(uBytes, TAG_RTL); 00151 }

VOID UserRtlFreeMem PVOID  pMem  ) 
 

Definition at line 153 of file w32/ntuser/kernel/pool.c.

References UserLocalFree, and VOID().

Referenced by __declspec(), AddEllipsisAndDrawLine(), and MBToWCSEx().

00155 { 00156 UserFreePool(pMem); 00157 }

PVOID Win32AllocPoolWithQuotaTagZInit SIZE_T  uBytes,
ULONG  uTag
 

Definition at line 80 of file w32/ntuser/kernel/pool.c.

00081 { 00082 PVOID pv; 00083 00084 pv = Win32AllocPoolWithQuota(uBytes, uTag); 00085 if (pv) { 00086 RtlZeroMemory(pv, uBytes); 00087 } 00088 00089 return pv; 00090 }

PVOID Win32AllocPoolWithTagZInit SIZE_T  uBytes,
ULONG  uTag
 

Definition at line 68 of file w32/ntuser/kernel/pool.c.

00069 { 00070 PVOID pv; 00071 00072 pv = Win32AllocPool(uBytes, uTag); 00073 if (pv) { 00074 RtlZeroMemory(pv, uBytes); 00075 } 00076 00077 return pv; 00078 }


Variable Documentation

BOOL gdwPoolFlags
 

Definition at line 15 of file w32/ntuser/kernel/pool.c.


Generated on Sat May 15 19:45:17 2004 for test by doxygen 1.3.7