windows-nt/Source/XPSP1/NT/net/layer2svc/wastore/memory.h
2020-09-26 16:20:57 +08:00

78 lines
1,022 B
C

#ifndef _MEMORY_H_INCLUDED_
#define _MEMORY_H_INCLUDED_
#ifdef __cplusplus
extern "C" {
#endif
LPVOID
ReallocPolMem(
LPVOID pOldMem,
DWORD cbOld,
DWORD cbNew
);
DWORD
AllocatePolString(
LPWSTR pszString,
LPWSTR * ppszNewString
);
void
FreePolString(
LPWSTR pszString
);
#if DBG
extern LIST_ENTRY ADsMemList ;
extern CRITICAL_SECTION ADsMemCritSect ;
VOID InitPolMem(
VOID
) ;
VOID AssertPolMemLeaks(
VOID
) ;
VOID
DumpMemoryTracker();
#else
#define InitPolMem()
#define AssertPolMemLeaks()
#define DumpMemoryTracker()
#endif
#ifdef __cplusplus
}
#endif
/*
inline void * _CRTAPI1
operator new(size_t size)
{
return AllocPolMem(size);
}
inline void _CRTAPI1
operator delete(void * pv)
{
FreePolMem(pv);
}*/
#endif // _MEMORY_H_INCLUDED_