home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / CMD / SVGAINST / DISPMEM.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  1KB  |  33 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  4. /*                                                                           */
  5. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  6. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  7. /*    drivers. You may use this code in accordance with the IBM License      */
  8. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  9. /*    Copyright statement may not be removed.                                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12. #include "comdef.h"
  13.  
  14. #define MAX_BUFFERS          20
  15. #define BUFFER_SIZE          32*1024                                  /* 32k */
  16. #define SUBALLOC_OVERHEAD    64                                  /* 64 bytes */
  17.  
  18.                                                           /* ulFlags defines */
  19. #define F_SUBALLOC_BUF      0x00000001
  20.  
  21. typedef struct _MEMBUF {     /* membuf */
  22.     PVOID  pmem;
  23.     ULONG  cbBuf;
  24.     ULONG  cbFree;
  25.     ULONG  ulFlags;
  26. } MEMBUF, *PMEMBUF;
  27.  
  28.  
  29. ULONG InitMemMgr(VOID);
  30. PVOID mymalloc(ULONG cb);
  31. VOID  myfree(PVOID pvBuf);
  32. PVOID mystrdup(PVOID pvOld);
  33.