Jump to content

VioGetMode

From EDM2
Revision as of 00:16, 10 June 2016 by Martini (talk | contribs) (Created page with "==Description== Returns the mode of the display. ==Syntax== <PRE> #define INCL_VIO #include <os2.h> PVIOMODEINFO ModeData; Mode characteristics.: HVIO ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Returns the mode of the display.

Syntax

#define INCL_VIO
#include <os2.h>

PVIOMODEINFO    ModeData;   /*  Mode characteristics. */
HVIO            VioHandle;  /*  VIO presentation-space handle. */
APIRET          rc;         /*  Return code. */

rc = VioGetMode(ModeData, VioHandle);

Parameters

ModeData (PVIOMODEINFO) - in/out
Mode characteristics.

The address of a structure where mode characteristics are returned.

VioHandle (HVIO) - input
VIO presentation-space handle.

This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS.

Return Code

rc (APIRET) - returns

VioGetMode returns one of the following values:

  • 0 NO_ERROR
  • 421 ERROR_VIO_INVALID_PARMS
  • 436 ERROR_VIO_INVALID_HANDLE
  • 438 ERROR_VIO_INVALID_LENGTH

Remarks


Example Code


Related Functions

  • [[OS2 API:CPI: