Leaked source code of windows server 2003
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.

8 lines
370 B

  1. #define AllocMem(cb) (LPVOID)LocalAlloc(LPTR | LMEM_ZEROINIT, cb)
  2. #define FreeMem(ptr,cb) (VOID)LocalFree((HANDLE)ptr)
  3. #define ReallocMem(ptr,cbo,cbn) (LPVOID)LocalReAlloc((HANDLE)ptr, cbn, LMEM_ZEROINIT | LMEM_MOVEABLE)
  4. LPTSTR AllocStr( LPTSTR lpStr );
  5. VOID FreeStr( LPTSTR lpStr );
  6. VOID ReallocStr( LPTSTR *plpStr, LPTSTR lpStr );