Jump to content

GreSetDeviceSurface

From EDM2

GreSetDeviceSurface allows printer devices to dynamically optimize their frame buffer's height, width, bits per pel and DevCaps.

Syntax

GreSetDeviceSurface(hdc, pDS)

Parameters

hdc (HDC) - input
The device context handle.
pDS (PDEVICESURFACE) - input
Pointer to information needed by the graphics engine.

Return Code

rc (LONG) - returns
Return codes.

The handling routine should return a LONG integer. Valid values are:

  • Zero (0) Success
  • Other Failure

Remarks

Printer devices can change their surface definition between pages using the GreSetDeviceSurface call. (This call must be imported.)