Jump to content

MouInitReal: Difference between revisions

From EDM2
Created page with "==Description== This call initializes mouse pointer draw support for DOS mode. ==Syntax== <PRE> MouInitReal (DriverName) </PRE> ==Parameters== ; DriverName (PSZ) - inp..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Description==
This call initializes mouse pointer draw support for DOS mode.
This call initializes mouse pointer draw support for DOS mode.


==Syntax==
==Syntax==
<PRE>
  MouInitReal (DriverName)
  MouInitReal
 
    (DriverName)
</PRE>


==Parameters==
==Parameters==
; DriverName (PSZ) - input : Address of the name of the Pointer Draw Device Driver used as the pointer-image drawing routine for the DOS mode session.
;DriverName (PSZ) - input : Address of the name of the Pointer Draw Device Driver used as the pointer-image drawing routine for the DOS mode session.
 
:The name of the device driver must be included in the CONFIG.SYS file at system start-up time.
The name of the device driver must be included in the CONFIG.SYS file at system start-up time.
:If the selector portion of the far address is zero and the offset portion is non-zero, the offset portion identifies the power-up display configuration.


If the selector portion of the far address is zero and the offset portion is non-zero, the offset portion identifies the power-up display configuration.
==Return Code==
==Return Code==
rc (USHORT) - return
;rc (USHORT) - return:Return code descriptions are:
 
* 0 NO_ERROR
Return code descriptions are:
* 385 ERROR_MOUSE_NO_DEVICE
 
* 466 ERROR_MOU_DETACHED
* 0     NO_ERROR  
* 412 ERROR_MOUSE_SMG_ONLY
* 385       ERROR_MOUSE_NO_DEVICE  
* 501 ERROR_MOUSE_NO_CONSOLE
* 466       ERROR_MOU_DETACHED  
* 505 ERROR_MOU_EXTENDED_SG
* 412       ERROR_MOUSE_SMG_ONLY  
* 501       ERROR_MOUSE_NO_CONSOLE  
* 505       ERROR_MOU_EXTENDED_SG


==Remarks==
==Remarks==
Line 36: Line 27:
This call is for use only by the Base Video Subsystem when invoked during system initialization under the shell/session manager PID.
This call is for use only by the Base Video Subsystem when invoked during system initialization under the shell/session manager PID.


The error code ERROR_MOUSE_SMG_ONLY is valid from shell process only.  
The error code ERROR_MOUSE_SMG_ONLY is valid from shell process only.


==Example Code==
==Bindings==
=== C Binding===
===C===
<PRE>
<PRE>
#define INCL_MOU
#define INCL_MOU
Line 45: Line 36:
USHORT  rc = MouInitReal(DriverName);
USHORT  rc = MouInitReal(DriverName);


PSZ             DriverName;    /* Pointer draw driver name */
PSZ     DriverName;    /* Pointer draw driver name */
 
USHORT rc;            /* return code */
USHORT           rc;            /* return code */
</PRE>
</PRE>


===MASM Binding===
===MASM===
<PRE>
<PRE>
EXTRN  MouInitReal:FAR
EXTRN  MouInitReal:FAR
Line 61: Line 51:
</PRE>
</PRE>


==Related Functions==
[[Category:Mou]]
*
 
[[Category:The OS/2 API Project]]

Latest revision as of 17:31, 14 September 2019

This call initializes mouse pointer draw support for DOS mode.

Syntax

MouInitReal (DriverName)

Parameters

DriverName (PSZ) - input
Address of the name of the Pointer Draw Device Driver used as the pointer-image drawing routine for the DOS mode session.
The name of the device driver must be included in the CONFIG.SYS file at system start-up time.
If the selector portion of the far address is zero and the offset portion is non-zero, the offset portion identifies the power-up display configuration.

Return Code

rc (USHORT) - return
Return code descriptions are:
  • 0 NO_ERROR
  • 385 ERROR_MOUSE_NO_DEVICE
  • 466 ERROR_MOU_DETACHED
  • 412 ERROR_MOUSE_SMG_ONLY
  • 501 ERROR_MOUSE_NO_CONSOLE
  • 505 ERROR_MOU_EXTENDED_SG

Remarks

MouInitReal is issued by the Base Video Subsystem at system initialization time.

The DOS mode mouse API (INT 33H), in contrast to the OS/2 mode Mouse API, does not contain an OPEN command. In addition, there is only one session for DOS mode.

The default pointer draw routine for DOS mode is located in the same pointer draw device driver, POINTER$, that is used for OS/2 mode. Establishing addressability to the pointer draw routine must be done during system initialization. This requires passing the entry point of the DOS mode pointer draw routine to the mouse device driver. This is the purpose of the MouInitReal call. It passes the address of the default, power-up pointer draw routine for DOS mode to the mouse device driver. This initialization is transparent to applications.

This call is for use only by the Base Video Subsystem when invoked during system initialization under the shell/session manager PID.

The error code ERROR_MOUSE_SMG_ONLY is valid from shell process only.

Bindings

C

#define INCL_MOU

USHORT  rc = MouInitReal(DriverName);

PSZ     DriverName;    /* Pointer draw driver name */
USHORT  rc;            /* return code */

MASM

EXTRN  MouInitReal:FAR
INCL_MOU            EQU 1

PUSH@  ASCIIZ  DriverName    ;Pointer draw driver name
CALL   MouInitReal

Returns WORD