mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
526 B
14 lines
526 B
|
|
#ifdef _DEBUG
|
|
LPVOID AllocMem( DWORD cb );
|
|
VOID FreeMem( LPVOID pMem, DWORD cb );
|
|
LPVOID ReallocMem( LPVOID lpOldMem, DWORD cbOld, DWORD cbNew );
|
|
#else
|
|
#define AllocMem(cb) (LPVOID)LocalAlloc(LPTR | LMEM_ZEROINIT, cb)
|
|
#define FreeMem(ptr,cb) (VOID)LocalFree((HANDLE)ptr)
|
|
#define ReallocMem(ptr,cbo,cbn) (LPVOID)LocalReAlloc((HANDLE)ptr, cbn, LMEM_ZEROINIT | LMEM_MOVEABLE)
|
|
#endif
|
|
|
|
LPTSTR AllocStr( LPTSTR lpStr );
|
|
VOID FreeStr( LPTSTR lpStr );
|
|
VOID ReallocStr( LPTSTR *plpStr, LPTSTR lpStr );
|