Windows-Server-2003/ds/adsi/include/memory.h

78 lines
726 B
C
Raw Normal View History

2024-08-04 01:28:15 +02:00
#ifndef _MEMORY_H_INCLUDED_
#define _MEMORY_H_INCLUDED_
#ifdef __cplusplus
extern "C" {
#endif
LPVOID
AllocADsMem(
DWORD cb
);
BOOL
FreeADsMem(
LPVOID pMem
);
LPVOID
ReallocADsMem(
LPVOID pOldMem,
DWORD cbOld,
DWORD cbNew
);
LPWSTR
AllocADsStr(
LPCWSTR pStr
);
BOOL
FreeADsStr(
LPWSTR pStr
);
BOOL
ReallocADsStr(
LPWSTR *ppStr,
LPWSTR pStr
);
#if DBG
extern LIST_ENTRY ADsMemList ;
extern CRITICAL_SECTION ADsMemCritSect ;
VOID InitADsMem(
VOID
) ;
VOID AssertADsMemLeaks(
VOID
) ;
VOID
DumpMemoryTracker();
#else
#define InitADsMem()
#define AssertADsMemLeaks()
#define DumpMemoryTracker()
#endif
#ifdef __cplusplus
}
#endif
#endif // _MEMORY_H_INCLUDED_