Differences
This shows you the differences between two versions of the page.
en:ibm:prcp:vio:getconfig [2016/02/04 09:52] – created valerius | en:ibm:prcp:vio:getconfig [2016/09/15 04:57] (current) – valerius | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== VioGetConfig ==== | ==== VioGetConfig ==== | ||
- | **Bindings**: | + | **Bindings**: |
This call returns the video display configuration. | This call returns the video display configuration. | ||
Line 155: | Line 155: | ||
The values returned may not be correct if the adapter cannot be properly identified by the Base Video Handler (BVH) selected at system installation time. It can also be incorrect if the physical setup does not match that indicated by the presence of the adapter or by adapter switches. For example, it is impossible to detect the absence of a display on a CGA or the display attached to an EGA, despite the setup switches. | The values returned may not be correct if the adapter cannot be properly identified by the Base Video Handler (BVH) selected at system installation time. It can also be incorrect if the physical setup does not match that indicated by the presence of the adapter or by adapter switches. For example, it is impossible to detect the absence of a display on a CGA or the display attached to an EGA, despite the setup switches. | ||
+ | |||
+ | === C bindings === | ||
+ | |||
+ | <code c> | ||
+ | typedef struct _VIOCONFIGINFO { /* vioin */ | ||
+ | USHORT | ||
+ | USHORT | ||
+ | USHORT | ||
+ | ULONG | ||
+ | in bytes */ | ||
+ | USHORT | ||
+ | USHORT | ||
+ | USHORT | ||
+ | ULONG | ||
+ | ULONG | ||
+ | ULONG | ||
+ | USHORT | ||
+ | USHORT | ||
+ | } VIOCONFIGINFO; | ||
+ | |||
+ | #define INCL_VIO | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | USHORT | ||
+ | PVIOCONFIGINFO | ||
+ | HVIO | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | === MASM bindings === | ||
+ | |||
+ | <code asm> | ||
+ | VIOCONFIGINFO struc | ||
+ | vioin_cb | ||
+ | vioin_adapter | ||
+ | vioin_display | ||
+ | vioin_cbMemory | ||
+ | vioin_Configuration dw ? ; | ||
+ | vioin_VDHVersion | ||
+ | vioin_Flags | ||
+ | vioin_HWBufferSize | ||
+ | vioin_FullSaveSize | ||
+ | vioin_PartSaveSize | ||
+ | vioin_EMAdaptersOFF dw ? ;Offset to emulated adapter types | ||
+ | vioin_EMDisplaysOFF dw ? ;Offset to emulated display types | ||
+ | VIOCONFIGINFO ends | ||
+ | |||
+ | EXTRN VioGetConfig: | ||
+ | INCL_VIO | ||
+ | |||
+ | PUSH | ||
+ | PUSH@ OTHER | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||