Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

77 lines
883 B

/*++
Copyright (c) 1994 Microsoft Corporation
All rights reserved.
Module Name:
Mem.hxx
Abstract:
Memory header
Must include Common.hxx.
Author:
Albert Ting (AlbertT) 20-May-1994
Revision History:
--*/
#ifdef __cplusplus
extern "C" {
#endif
PVOID
AllocMem(
UINT cbSize
);
VOID
FreeMem(
PVOID pMem
);
#if DBG
PVOID
DbgAllocMem(
UINT cbSize
);
VOID
DbgFreeMem(
PVOID pMem
);
#endif
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
/********************************************************************
The following are used if you want to override a classes'
new and delete using SAFE_NEW.
********************************************************************/
inline
PVOID
SafeNew(
size_t size
)
{
return AllocMem(size);
}
inline
VOID
SafeDelete(
PVOID pVoid)
{
FreeMem( pVoid );
}
#endif