VioGetConfig: Difference between revisions
Appearance
m Ak120 moved page OS2 API:CPI:VioGetConfig to VioGetConfig |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
==Syntax== | ==Syntax== | ||
VioGetConfig(ConfigID, ConfigData, VioHandle) | |||
==Parameters== | ==Parameters== | ||
;ConfigID (ULONG) - input : Configuration ID. | ;ConfigID (ULONG) - input: Configuration ID. | ||
:Identifies the display configuration for which information is being requested: | :Identifies the display configuration for which information is being requested: | ||
::0 - Current configuration | |||
::1 - Primary configuration | |||
::2 - Secondary configuration | |||
;ConfigData (P[[VIOCONFIGINFO]]) - output: Pointer to the configuration data. | |||
;ConfigData ( | |||
;VioHandle (HVIO) - input : Presentation-space handle. | ;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. | :This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by [[VioCreatePS]]. | ||
==Remarks== | ==Remarks== |
Latest revision as of 22:00, 1 January 2020
Returns the video display configuration.
Syntax
VioGetConfig(ConfigID, ConfigData, VioHandle)
Parameters
- ConfigID (ULONG) - input
- Configuration ID.
- Identifies the display configuration for which information is being requested:
- 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.
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.