Leaked source code of windows server 2003
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
655 B

  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. #include "outline.h"
  13. /* New
  14. * ---
  15. *
  16. * Allocate memory for a new structure
  17. */
  18. LPVOID New(DWORD lSize)
  19. {
  20. LPVOID lp = OleStdMalloc((ULONG)lSize);
  21. return lp;
  22. }
  23. /* Delete
  24. * ------
  25. *
  26. * Free memory allocated for a structure
  27. */
  28. void Delete(LPVOID lp)
  29. {
  30. OleStdFree(lp);
  31. }