Jump to content

VIOCOLORREG: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
== VIOCOLORREG ==
== VIOCOLORREG ==
 
VIO colour register
VIO color register.


=== Type ===  
=== Type ===  
 
  [[USHORT]]  cb
  [[OS2 API:DataType:USHORT|USHORT]]  cb
  USHORT  type
  [[OS2 API:DataType:USHORT|USHORT]] type
  USHORT  firstcolorreg
  [[OS2 API:DataType:USHORT|USHORT]] firstcolorreg
  USHORT  numcolorregs
  [[OS2 API:DataType:USHORT|USHORT]] numcolorregs
  PCH    colorregaddr
  [[OS2 API:DataType:PCH|PCH]]     colorregaddr


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


=== Fields ===
=== Fields ===
   
;cb:Length of the structure in bytes, including length. The maximum valid value is 12.
cb             Length of the structure in bytes, including length. The maximum
;type:Request type = 3, get color registers.
                valid value is 12.
:Request type 3 for color registers.
 
;firstcolorreg:First color register.
type           Request type = 3, get color registers.
:The first color register to get in the color register sequence. It must be specified in the range 0 through 255. The color registers are returned in sequential order.
                Request type 3 for color registers.
;numcolorregs:Number of color registers to get.
 
:The number of color registers to get; must be specified in the range 1 through 256.
firstcolorreg First color register.
;colorregaddr:Area where the color registers are returned.
                The first color register to get in the color register sequence.
:The far address of a data area where the color registers are returned. The size of the data area must be three bytes times the number of color registers to get. The format of each entry returned is as follows:
                It must be specified in the range 0 through 255. The color
::Byte 1  Red value
                registers are returned in sequential order.  
::Byte 2  Green value
 
::Byte 3  Blue value
numcolorregs   Number of color registers to get.
                The number of color registers to get; must be specified in the
                range 1 through 256.
 
colorregaddr   Area where the color registers are returned.
                The far address of a data area where the color registers are
                returned. The size of the data area must be three bytes times
                the number of color registers to get. The format of each entry
                returned is as follows:
 
                Byte 1  Red value  
                Byte 2  Green value  
                Byte 3  Blue value
 
 
 
[[OS2_API | Back to OS/2 API]]
 


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

Revision as of 13:11, 31 October 2016

VIOCOLORREG

VIO colour register

Type

USHORT  cb
USHORT  type
USHORT  firstcolorreg
USHORT  numcolorregs
PCH     colorregaddr

C Declaration Method

typedef struct

Fields

cb
Length of the structure in bytes, including length. The maximum valid value is 12.
type
Request type = 3, get color registers.
Request type 3 for color registers.
firstcolorreg
First color register.
The first color register to get in the color register sequence. It must be specified in the range 0 through 255. The color registers are returned in sequential order.
numcolorregs
Number of color registers to get.
The number of color registers to get; must be specified in the range 1 through 256.
colorregaddr
Area where the color registers are returned.
The far address of a data area where the color registers are returned. The size of the data area must be three bytes times the number of color registers to get. The format of each entry returned is as follows:
Byte 1 Red value
Byte 2 Green value
Byte 3 Blue value