windows-nt/Source/XPSP1/NT/com/oleutest/letest/outline/memmgr.c

39 lines
617 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*************************************************************************
**
** OLE 2 Sample Code
**
** memmgr.c
**
** This file contains memory management functions.
**
** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved
**
*************************************************************************/
#include "outline.h"
/* New
* ---
*
* Allocate memory for a new structure
*/
LPVOID New(DWORD lSize)
{
LPVOID lp = OleStdMalloc((ULONG)lSize);
return lp;
}
/* Delete
* ------
*
* Free memory allocated for a structure
*/
void Delete(LPVOID lp)
{
OleStdFree(lp);
}