Jump to content

GreSetDeviceSurface

From EDM2
Revision as of 05:09, 28 December 2019 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.)