windows-nt/Source/XPSP1/NT/com/mobile/syncmgr/sample/alloc.h

32 lines
808 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//==========================================================================
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
// Copyright 1998 - 1999 Microsoft Corporation. All Rights Reserved.
//
//--------------------------------------------------------------------------
#ifndef _SAMPLEALLOC_
#define _SAMPLEALLOC_
inline void* __cdecl operator new (size_t size);
inline void __cdecl operator delete(void FAR* lpv);
LPVOID ALLOC(ULONG cb);
void FREE(void* pv);
LPVOID REALLOC(void *pv,ULONG cb);
#ifdef _DEBUG
#define MEMINITVALUE 0xff
#define MEMFREEVALUE 0xfe
#endif // DEBUG
#endif // _SAMPLEALLOC_