Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

38 lines
617 B

/*************************************************************************
**
** 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);
}