Jump to content

VIOMODEINFO: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
No edit summary
Line 1: Line 1:
== VIOMODEINFO ==
== VIOMODEINFO ==
Text mode info.
Text mode info.


=== Type ===
=== Type ===
 
  [[USHORT]]  cb
  [[OS2 API:DataType:USHORT|USHORT]]  cb
  [[UCHAR]]  fbType
  [[OS2 API:DataType:UCHAR|UCHAR]]  fbType
  UCHAR  color
  [[OS2 API:DataType:UCHAR|UCHAR]]   color
  USHORT  col
  [[OS2 API:DataType:USHORT|USHORT]] col
  USHORT  row
  [[OS2 API:DataType:USHORT|USHORT]] row
  USHORT  hres
  [[OS2 API:DataType:USHORT|USHORT]] hres
  USHORT  vres
  [[OS2 API:DataType:USHORT|USHORT]] vres
  UCHAR  fmt_ID
  [[OS2 API:DataType:UCHAR|UCHAR]]   fmt_ID
  UCHAR  attrib
  [[OS2 API:DataType:UCHAR|UCHAR]]   attrib
  USHORT  resv
  [[OS2 API:DataType:USHORT|USHORT]] resv
  [[ULONG]]  buf_addr
  [[OS2 API:DataType:ULONG|ULONG]]  buf_addr
  ULONG  buf_length
  [[OS2 API:DataType:ULONG|ULONG]]   buf_length
  ULONG  full_length
  [[OS2 API:DataType:ULONG|ULONG]]   full_length
  ULONG  partial_length
  [[OS2 API:DataType:ULONG|ULONG]]   partial_length
  ULONG  ext_data_addr
  [[OS2 API:DataType:ULONG|ULONG]]   ext_data_addr


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct


=== Fields ===
=== Fields ===
 
;cb:Length of this data structure
cb             Length of this data structure
:Input parameter to VioGetMode. Length specifies the length of the data structure in bytes, including length. The value specified on input controls the amount of mode data returned.
                Input parameter to VioGetMode. Length specifies the length of
:The minimum structure size required is two bytes. The length is modified on output.
                the data structure in bytes, including length. The value
;fbType:Bit mask of mode being set.
                specified on input controls the amount of mode data returned.
:Mode characteristics bit mask:
                The minimum structure size required is two bytes. The length is
::Bit  Description  
                modified on output.
::7-4  Reserved  
 
::3    0 = VGA BIOS compatible modes  
fbType         Bit mask of mode being set.
::1 = Native mode  
                Mode characteristics bit mask:
::2    0 = Enable color burst  
 
::1 = Disable color burst  
                Bit  Description  
::1    0 = Text mode  
                7-4  Reserved  
::1 = Graphics mode  
                3    0 = VGA BIOS compatible modes  
::0    0 = Monochrome compatible mode  
                      1 = Native mode  
::1 = Other
                2    0 = Enable color burst  
;color:Number of colors.
                      1 = Disable color burst  
:Number of colors defined as a power of 2. This is equivalent to the number of color bits that define the color, for example:
                1    0 = Text mode  
::Value  Definition  
                      1 = Graphics mode  
::0      Monochrome  
                0    0 = Monochrome compatible mode  
::1      2 colors  
                      1 = Other
::2      4 colors  
 
::4      16 colors  
color           Number of colors.
::8      256 colors  
                Number of colors defined as a power of 2. This is equivalent to
::16    64K colors  
                the number of color bits that define the color, for example:
::24    16M colors
 
;col:The number of text columns.
                Value  Definition  
;row:The number of text rows.
                0      Monochrome  
;hres:Horizontal resolution; the number of pel columns.
                1      2 colors  
;vres:Vertical resolution, the number of pel rows.
                2      4 colors  
;fmt_ID:Attribute format.
                4      16 colors  
:The format of the attributes.
                8      256 colors  
;attrib:Number of attributes.
                16    64K colors  
:The number of attributes in a character cell.
                24    16M colors
;resv:Reserved.
 
;buf_addr:Video aperture address.
col             The number of text columns.
:The physical address of the physical display aperture. This may be zero for emulated video hardware.
 
;buf_length:Video aperture length.
row             The number of text rows.
:The length of the physical display aperture.
 
;full_length:Video state full save length.
hres           Horizontal resolution; the number of pel columns.
:The size of the buffer required for a full save of the video state.
 
;partial_length:Video state partial save length.
vres           Vertical resolution, the number of pel rows.
:The size of the buffer required for a partial (pop-up) save of the video state.
 
;ext_data_addr:Extra data address.
fmt_ID         Attribute format.
:The virtual address of an extended mode data structure or zero (if none). The format of the extended mode data structure is determined by the device driver and is unknown to OS/2.
                The format of the attributes.
 
attrib         Number of attributes.
                The number of attributes in a character cell.
 
resv           Reserved.
 
buf_addr       Video aperture address.
                The physical address of the physical display aperture. This may
                be zero for emulated video hardware.
 
buf_length     Video aperture length.
                The length of the physical display aperture.
 
full_length     Video state full save length.
                The size of the buffer required for a full save of the video
                state.
 
partial_length Video state partial save length.
                The size of the buffer required for a partial (pop-up) save of
                the video state.
 
ext_data_addr   Extra data address.
                The virtual address of an extended mode data structure or zero
                (if none).. The format of the extended mode data structure is
                determined by the device driver and is unknown to OS/2.
 
 
[[OS2_API | Back to OS/2 API]]
 


[[Category:The OS/2 API Project]]
[[Category:Data type]]

Revision as of 20:10, 28 November 2016

VIOMODEINFO

Text mode info.

Type

USHORT  cb
UCHAR   fbType
UCHAR   color
USHORT  col
USHORT  row
USHORT  hres
USHORT  vres
UCHAR   fmt_ID
UCHAR   attrib
USHORT  resv
ULONG   buf_addr
ULONG   buf_length
ULONG   full_length
ULONG   partial_length
ULONG   ext_data_addr

C Declaration Method

typedef struct

Fields

cb
Length of this data structure
Input parameter to VioGetMode. Length specifies the length of the data structure in bytes, including length. The value specified on input controls the amount of mode data returned.
The minimum structure size required is two bytes. The length is modified on output.
fbType
Bit mask of mode being set.
Mode characteristics bit mask:
Bit Description
7-4 Reserved
3 0 = VGA BIOS compatible modes
1 = Native mode
2 0 = Enable color burst
1 = Disable color burst
1 0 = Text mode
1 = Graphics mode
0 0 = Monochrome compatible mode
1 = Other
color
Number of colors.
Number of colors defined as a power of 2. This is equivalent to the number of color bits that define the color, for example:
Value Definition
0 Monochrome
1 2 colors
2 4 colors
4 16 colors
8 256 colors
16 64K colors
24 16M colors
col
The number of text columns.
row
The number of text rows.
hres
Horizontal resolution; the number of pel columns.
vres
Vertical resolution, the number of pel rows.
fmt_ID
Attribute format.
The format of the attributes.
attrib
Number of attributes.
The number of attributes in a character cell.
resv
Reserved.
buf_addr
Video aperture address.
The physical address of the physical display aperture. This may be zero for emulated video hardware.
buf_length
Video aperture length.
The length of the physical display aperture.
full_length
Video state full save length.
The size of the buffer required for a full save of the video state.
partial_length
Video state partial save length.
The size of the buffer required for a partial (pop-up) save of the video state.
ext_data_addr
Extra data address.
The virtual address of an extended mode data structure or zero (if none). The format of the extended mode data structure is determined by the device driver and is unknown to OS/2.