Jump to content

VioGetConfig

From EDM2
Revision as of 17:59, 10 June 2016 by Martini (talk | contribs) (Created page with "==Description== Returns the video display configuration. ==Syntax== <PRE> #define INCL_VIO #include <os2.h> ULONG ConfigID; Configuration ID.: PVIOCONFI...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Returns the video display configuration.

Syntax

#define INCL_VIO
#include <os2.h>

ULONG             ConfigID;    /*  Configuration ID. */
PVIOCONFIGINFO    ConfigData;  /*  Pointer to the configuration data. */
HVIO              VioHandle;   /*  Presentation-space handle. */
APIRET            rc;          /*  Return code. */

rc = VioGetConfig(ConfigID, ConfigData, VioHandle);

Parameters

ConfigID (ULONG) - input
Configuration ID.

Identifies the display configuration for which information is being requested:

  Value         Definition 
   0            Current configuration 
   1            Primary configuration 
   2            Secondary configuration 
ConfigData (PVIOCONFIGINFO) - output
Pointer to the configuration data.
VioHandle (HVIO) - input
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

Remarks

The values returned might not be correct if the adapter cannot be properly identified or if the device is not capable of returning its settings.

Example Code


Related Functions

  • [[OS2 API:CPI: