en:docs:fapi:vioregister

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
en:docs:fapi:vioregister [2021/09/11 07:57] prokusheven:docs:fapi:vioregister [2021/09/19 05:33] (current) prokushev
Line 1: Line 1:
 +{{page>en:templates:fapiint}}
 +====== VioRegister ======
 + 
 This call registers an alternate video subsystem within a session. This call registers an alternate video subsystem within a session.
  
-==Syntax==+===== Syntax ===== 
  
 <code c> <code c>
Line 7: Line 11:
 </code> </code>
  
-==Parameters== +===== Parameters ===== 
-  *ModuleName (PSZ) - input: Address of the ASCIIZ string containing the 1-8 character file name of the subsystem. The maximum length of the ASCIIZ string is 9 bytes including the terminating byte of zero. The module must be a dynamic link library but the name supplied must not include the .DLL extension. + 
-  *EntryPoint (PSZ) - input: Address of the ASCIIZ name string containing the dynamic link entry point name of the routine in the subsystem to receive control when any of the registered functions is called. The maximum length of the ASCIIZ string is 33 bytes including the terminating byte of zero. +  *ModuleName ([[PSZ]]) - input: Address of the ASCIIZ string containing the 1-8 character file name of the subsystem. The maximum length of the ASCIIZ string is 9 bytes including the terminating byte of zero. The module must be a dynamic link library but the name supplied must not include the .DLL extension. 
-  *FunctionMask1 (ULONG) - input: A bit mask where each bit identifies a video function being registered. The bit definitions are shown below. The first word pushed onto the stack contains the high-order 16 bits of the function mask, and the second word contains the low-order 16 bits.+  *EntryPoint ([[PSZ]]) - input: Address of the ASCIIZ name string containing the dynamic link entry point name of the routine in the subsystem to receive control when any of the registered functions is called. The maximum length of the ASCIIZ string is 33 bytes including the terminating byte of zero. 
 +  *FunctionMask1 ([[ULONG]]) - input: A bit mask where each bit identifies a video function being registered. The bit definitions are shown below. The first word pushed onto the stack contains the high-order 16 bits of the function mask, and the second word contains the low-order 16 bits.
  
 ^ BIT ^ REGISTERED FUNCTION ^ ^ BIT ^ REGISTERED FUNCTION ^
Line 46: Line 51:
 |0|VioGetCurPos| |0|VioGetCurPos|
  
-  * FunctionMask2 (ULONG) - input : A bit mask where each bit identifies a video function being registered. The bit mask has the format shown below. The first word pushed onto the stack contains the high order 16 bits of the function mask, and the second word contains the low order 16 bits. Unused bits are reserved and must be set to zero.+  * FunctionMask2 ([[ULONG]]) - input : A bit mask where each bit identifies a video function being registered. The bit mask has the format shown below. The first word pushed onto the stack contains the high order 16 bits of the function mask, and the second word contains the low order 16 bits. Unused bits are reserved and must be set to zero.
  
 ^ Bit ^ Description ^ ^ Bit ^ Description ^
Line 60: Line 65:
 |0|VioModeWait| |0|VioModeWait|
  
-==Return Code== +===== Return Code ===== 
-;rc (USHORT) - return:Return code descriptions are:+ 
 +rc ([[USHORT]]) - return:Return code descriptions are:
  
   *0 NO_ERROR   *0 NO_ERROR
Line 71: Line 77:
   *494 ERROR_VIO_EXTENDED_SG   *494 ERROR_VIO_EXTENDED_SG
  
-==Remarks==+===== Remarks ===== 
 An alternate video subsystem must register which video calls it handles. The default OS/2 video subsystem is the Base Video Subsystem. An alternate video subsystem must register which video calls it handles. The default OS/2 video subsystem is the Base Video Subsystem.
  
Line 78: Line 85:
 The first value is the index number (Word) of the routine being called. The second value is a near pointer (Word). The third value is the caller's DS register(Word). The fourth value is the return address(DWord) to the VIO router. The first value is the index number (Word) of the routine being called. The second value is a near pointer (Word). The third value is the caller's DS register(Word). The fourth value is the return address(DWord) to the VIO router.
  
-For example, if VioSetCurPos were a registered function, the stack would appear as if the following instruction sequence were executed if VioSetCurPos were called and control routed to EntryPoint:+For example, if [[VioSetCurPos]] were a registered function, the stack would appear as if the following instruction sequence were executed if [[VioSetCurPos]] were called and control routed to EntryPoint:
  
 <code asm> <code asm>
Line 148: Line 155:
 [[http://www.edm2.com/index.php/VioRegister]] [[http://www.edm2.com/index.php/VioRegister]]
  
 +{{page>en:templates:fapi}}