Jump to content

MONITORPOSITION: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
No edit summary
Line 1: Line 1:
== MONITORPOSITION ==
== MONITORPOSITION ==
Monitor Position data structure.  
Monitor Position data structure.  


=== Type ===  
=== Type ===  
  [[OS2 API:DataType:USHORT|USHORT]]  fPosition
  [[OS2 API:DataType:USHORT|USHORT]]  fPosition
  [[OS2 API:DataType:USHORT|USHORT]]  index
  [[OS2 API:DataType:USHORT|USHORT]]  index
Line 11: Line 9:


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


=== Fields ===
=== Fields ===
;fPosition - Placement flag.
:The DosMonReg function call parameter that is used by an application to indicate:
:Where its monitor buffers are to be placed within a monitor chain relative to monitors already registered on the monitor chain
:What special processing requirements need to be supported by the monitor dispatcher.
:Refer to the IOCtl function 40h for valid parameter values.


fPosition  Placement flag.
;index - Index.
            The DosMonReg function call parameter that is used by an application
:Used by an application to indicate on which monitor chain its monitor buffers are being registered. The accepted values for this parameter vary for each device driver. See information on the physical mouse device driver, the physical keyboard device driver and the physical parallel port device driver in the OS/2 Input/Output Device Driver Reference to determine the valid parameter value for each device driver.
            to indicate:
:Refer to the IOCtl function 40h for valid parameter values.
            Where its monitor buffers are to be placed within a monitor chain
            relative to monitors already registered on the monitor chain
            What special processing requirements need to be supported by the
            monitor dispatcher.
            Refer to the IOCtl function 40h for valid parameter values.
 
index     Index.
            Used by an application to indicate on which monitor chain its
            monitor buffers are being registered. The accepted values for this
            parameter vary for each device driver. See information on the
            physical mouse device driver, the physical keyboard device driver
            and the physical parallel port device driver in the OS/2
            Input/Output Device Driver Reference to determine the valid
            parameter value for each device driver.
            Refer to the IOCtl function 40h for valid parameter values.
 
pbInBuf    Address of the Input Buffer.
            Specifies the address of a monitor input buffer allocated by an
            application, initialized by the monitor dispatcher, and used by the
            DosMonRead function.
 
offOutBuf  Offset of the Output Buffer.
            Specifies the offset of a monitor output buffer allocated by an
            application in the same data segment as the input buffer,
            initialized by the monitor dispatcher, and used by the DosMonWrite
            function.
 
 
 


[[OS2_API | Back to OS/2 API]]
;pbInBuf - Address of the Input Buffer.
:Specifies the address of a monitor input buffer allocated by an application, initialized by the monitor dispatcher, and used by the DosMonRead function.


;offOutBuf - Offset of the Output Buffer.
:Specifies the offset of a monitor output buffer allocated by an application in the same data segment as the input buffer, initialized by the monitor dispatcher, and used by the DosMonWrite function.


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

Revision as of 09:54, 4 September 2016

MONITORPOSITION

Monitor Position data structure.

Type

USHORT  fPosition
USHORT  index
ULONG   pbInBuf
USHORT  offOutBuf

C Declaration Method

typedef struct

Fields

fPosition - Placement flag.
The DosMonReg function call parameter that is used by an application to indicate:
Where its monitor buffers are to be placed within a monitor chain relative to monitors already registered on the monitor chain
What special processing requirements need to be supported by the monitor dispatcher.
Refer to the IOCtl function 40h for valid parameter values.
index - Index.
Used by an application to indicate on which monitor chain its monitor buffers are being registered. The accepted values for this parameter vary for each device driver. See information on the physical mouse device driver, the physical keyboard device driver and the physical parallel port device driver in the OS/2 Input/Output Device Driver Reference to determine the valid parameter value for each device driver.
Refer to the IOCtl function 40h for valid parameter values.
pbInBuf - Address of the Input Buffer.
Specifies the address of a monitor input buffer allocated by an application, initialized by the monitor dispatcher, and used by the DosMonRead function.
offOutBuf - Offset of the Output Buffer.
Specifies the offset of a monitor output buffer allocated by an application in the same data segment as the input buffer, initialized by the monitor dispatcher, and used by the DosMonWrite function.