Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:ibm:prcp:vio:getstate [2016/09/14 10:21] – valerius | en:ibm:prcp:vio:getstate [2016/09/14 10:41] (current) – valerius | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== VioGetState ==== | ==== VioGetState ==== | ||
| - | **Bindings**: | + | **Bindings**: | 
| This call returns the current settings of the palette registers, overscan (border) color, blink/ | This call returns the current settings of the palette registers, overscan (border) color, blink/ | ||
| Line 145: | Line 145: | ||
| Request type = 6, Get Target [[en: | Request type = 6, Get Target [[en: | ||
| + | |||
| + | === C bindings === | ||
| + | |||
| + | <code c> | ||
| + | typedef struct _VIOPALSTATE { | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   }VIOPALSTATE; | ||
| + | typedef VIOPALSTATE far *PVIOPALSTATE; | ||
| + | |||
| + | typedef struct _VIOOVERSCAN { | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + | (border) color */ | ||
| + |   USHORT  | ||
| + |   }VIOOVERSCAN; | ||
| + | typedef VIOOVERSCAN far *PVIOOVERSCAN; | ||
| + | |||
| + | typedef struct _VIOINTENSITY { | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + | intensity switch */ | ||
| + |   USHORT  | ||
| + |   }VIOINTENSITY; | ||
| + | typedef VIOINTENSITY far *PVIOINTENSITY; | ||
| + | |||
| + | typedef struct _VIOCOLORREG { /* viocreg */ | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   PCH      | ||
| + |   }VIOCOLORREG; | ||
| + | typedef VIOCOLORREG far *PVIOCOLORREG; | ||
| + | |||
| + | typedef struct _VIOSETULINELOC { /* viouline */ | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   }VIOSETULINELOC; | ||
| + | typedef VIOSETULINELOC far *PVIOSETULINELOC; | ||
| + | |||
| + | typedef struct _VIOSETTARGET { /* viosett */ | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   USHORT  | ||
| + |   }VIOSETTARGET; | ||
| + | typedef VIOSETTARGET far *PVIOSETTARGET; | ||
| + | |||
| + | #define INCL_VIO | ||
| + | |||
| + | USHORT  | ||
| + | |||
| + | PVOID            RequestBlock;  | ||
| + | HVIO              | ||
| + | |||
| + | USHORT  | ||
| + | </ | ||
| + | |||
| + | === MASM bindings: === | ||
| + | |||
| + | <code asm> | ||
| + | |||
| + | VIOPALSTATE struc | ||
| + |   viopal_cb  | ||
| + |   viopal_type  | ||
| + |   viopal_iFirst  | ||
| + |   viopal_acolor  | ||
| + | VIOPALSTATE ends | ||
| + | |||
| + | VIOOVERSCAN struc | ||
| + |   vioos_cb  | ||
| + |   vioos_type  | ||
| + |   vioos_color  | ||
| + | VIOOVERSCAN ends | ||
| + | |||
| + | VIOINTENSITY struc | ||
| + |   vioint_cb  | ||
| + |   vioint_type  | ||
| + | ; intensity switch | ||
| + |   vioint_fs  | ||
| + | VIOINTENSITY ends | ||
| + | |||
| + | VIOCOLORREG struc | ||
| + |   viocreg_cb  | ||
| + |   viocreg_type  | ||
| + |   viocreg_firstcolorreg  | ||
| + |   viocreg_numcolorregs  | ||
| + |   viocreg_colorregaddr  | ||
| + | VIOCOLORREG ends | ||
| + | |||
| + | VIOSETULINELOC struc | ||
| + |   viouline_cb  | ||
| + |   viouline_type  | ||
| + |   viouline_scanline  | ||
| + | VIOSETULINELOC ends | ||
| + | |||
| + | VIOSETTARGET struc | ||
| + |   viosett_cb  | ||
| + |   viosett_type  | ||
| + | viosett_defaultalgorithm dw ? ; | ||
| + | VIOSETTARGET  | ||
| + | |||
| + | EXTRN  VioGetState: | ||
| + | INCL_VIO  | ||
| + | |||
| + | PUSH@  OTHER    | ||
| + | PUSH    | ||
| + | CALL    | ||
| + | |||
| + | Returns WORD | ||
| + | </ | ||
| + | |||




