Description:
GreSetDeviceSurface allows printer devices to dynamically optimize their frame buffer's height, width, bits per pel and DevCaps.
#include <os2.h> HDC hdc; /* The device context handle. */ PDEVICESURFACE pDS; /* Pointer to information needed by the graphics engine. */ LONG rc; /* Return codes. */ rc = GreSetDeviceSurface(hdc, pDS);