en:docs:fapi:viogetmode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:docs:fapi:viogetmode [2021/08/20 08:54] – created prokusheven:docs:fapi:viogetmode [2021/09/19 04:48] (current) prokushev
Line 1: Line 1:
 {{page>en:templates:fapiint}} {{page>en:templates:fapiint}}
 +====== VioGetMode ====== 
 + 
 This call returns the mode of the display. This call returns the mode of the display.
  
-==Syntax== +===== Syntax ===== 
- VioGetMode (ModeData, VioHandle)+<code c> 
 +VioGetMode (ModeData, VioHandle) 
 +</code> 
 + 
 +===== Parameters ===== 
 + 
 +  * ModeData ([[PVIOMODEINFO]]) - input/output : Far address of a structure where mode characteristics are returned. 
 +  * VioHandle ([[HVIO]]) - input : Reserved word of 0s. 
 + 
 +===== Return Code ===== 
 + 
 +rc ([[USHORT]]) - return 
 + 
 +Return code descriptions are: 
 +  *0  NO_ERROR 
 +  *436 ERROR_VIO_INVALID_HANDLE 
 +  *438 ERROR_VIO_INVALID_LENGTH 
 +  *465 ERROR_VIO_DETACHED 
 +  *494 ERROR_VIO_EXTENDED_SG
  
-==Parameters== +===== Remarks =====
-;ModeData (P[[VIOMODEINFO]]) - input/output : Far address of a structure where mode characteristics are returned. +
-;VioHandle (HVIO) - input : Reserved word of 0s.+
  
-==Return Code== +Refer to [[VioSetMode]] for examples.
-;rc (USHORT) - return:Return code descriptions are: +
-*0  NO_ERROR +
-*436 ERROR_VIO_INVALID_HANDLE +
-*438 ERROR_VIO_INVALID_LENGTH +
-*465 ERROR_VIO_DETACHED +
-*494 ERROR_VIO_EXTENDED_SG+
  
-==Remarks== +===== Bindings =====
-Refer to [[VioSetMode (FAPI)|VioSetMode]] for examples.+
  
-==Bindings== +====C==== 
-===C=== +<code c>
-<PRE>+
 typedef struct _VIOMODEINFO { typedef struct _VIOMODEINFO {
   USHORT cb;                  /* Length of the entire data structure */   USHORT cb;                  /* Length of the entire data structure */
Line 50: Line 59:
  
 USHORT           rc;            /* return code */ USHORT           rc;            /* return code */
-</PRE>+</code>
  
-===MASM=== +====MASM==== 
-<PRE>+<code asm>
 VIOMODEINFO struc VIOMODEINFO struc
   viomi_cb             dw ? ;Length of the entire data structure   viomi_cb             dw ? ;Length of the entire data structure
Line 79: Line 88:
  
 Returns WORD Returns WORD
-</PRE>+</code>
  
 {{page>en:templates:fapi}} {{page>en:templates:fapi}}