Source code of Windows XP (NT5)
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

  1. #ifdef _DEBUG
  2. LPVOID AllocMem( DWORD cb );
  3. VOID FreeMem( LPVOID pMem, DWORD cb );
  4. LPVOID ReallocMem( LPVOID lpOldMem, DWORD cbOld, DWORD cbNew );
  5. #else
  6. #define AllocMem(cb) (LPVOID)LocalAlloc(LPTR | LMEM_ZEROINIT, cb)
  7. #define FreeMem(ptr,cb) (VOID)LocalFree((HANDLE)ptr)
  8. #define ReallocMem(ptr,cbo,cbn) (LPVOID)LocalReAlloc((HANDLE)ptr, cbn, LMEM_ZEROINIT | LMEM_MOVEABLE)
  9. #endif
  10. LPTSTR AllocStr( LPTSTR lpStr );
  11. VOID FreeStr( LPTSTR lpStr );
  12. VOID ReallocStr( LPTSTR *plpStr, LPTSTR lpStr );