## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Allocating Memory

Presentation drivers can allocate and manage memory by using:

A Dosxxx function such as DosAllocMem.
The SSxxx functions described in System Functions.

Display drivers, or presentation drivers that share objects such as bit maps and regions, must use the SSxxx functions to allocate memory for these objects. Memory allocated through calls to these functions is "shared memory", controlled by the memory allocator component of the graphics engine. Ownership of the memory can be transferred or (when the owning device context ceases to exist) marked as having no owner.