DosAllocMem() Function

APIRET    rc;                          /* Return code                    */
PVOID     pObject;                     /* Pointer to memory object       */

rc = DosAllocMem(&pObject,             /* Allocate memory object         */
                 73727,                /* Size of memory object          */
                 PAG_COMMIT |          /* Commit memory immediately      */
                 PAG_READ   |          /* Allow read access              */
                 PAG_WRITE);           /* Allow write access             */

This function replaces the DosAllocSeg() function implemented in previous versions of OS/2.


[Back: DosCreateThread() Function]
[Next: Declaring a 16-Bit Function in 32-Bit Code]