|
|
1.1 root 1: /*************************************************************************
2: **
3: ** OLE 2 Sample Code
4: **
5: ** memmgr.c
6: **
7: ** This file contains memory management functions.
8: **
9: ** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved
10: **
11: *************************************************************************/
12:
13:
14: #include "outline.h"
15: #include <olestd.h>
16:
17:
18: /* New
19: * ---
20: *
21: * Allocate memory for a new structure
22: */
23: LPVOID New(DWORD lSize)
24: {
25: LPVOID lp = OleStdMalloc((ULONG)lSize);
26:
27: return lp;
28: }
29:
30:
31: /* Delete
32: * ------
33: *
34: * Free memory allocated for a structure
35: */
36: void Delete(LPVOID lp)
37: {
38: OleStdFree(lp);
39: }
40:
41:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.