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 >
Wrap
C/C++ Source or Header
|
1995-04-14
|
1KB
|
33 lines
/*DDK*************************************************************************/
/* */
/* COPYRIGHT Copyright (C) 1995 IBM Corporation */
/* */
/* The following IBM OS/2 WARP source code is provided to you solely for */
/* the purpose of assisting you in your development of OS/2 WARP device */
/* drivers. You may use this code in accordance with the IBM License */
/* Agreement provided in the IBM Device Driver Source Kit for OS/2. This */
/* Copyright statement may not be removed. */
/* */
/*****************************************************************************/
#include "comdef.h"
#define MAX_BUFFERS 20
#define BUFFER_SIZE 32*1024 /* 32k */
#define SUBALLOC_OVERHEAD 64 /* 64 bytes */
/* ulFlags defines */
#define F_SUBALLOC_BUF 0x00000001
typedef struct _MEMBUF { /* membuf */
PVOID pmem;
ULONG cbBuf;
ULONG cbFree;
ULONG ulFlags;
} MEMBUF, *PMEMBUF;
ULONG InitMemMgr(VOID);
PVOID mymalloc(ULONG cb);
VOID myfree(PVOID pvBuf);
PVOID mystrdup(PVOID pvOld);