Jump to content

MONITORPOSITION: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== MONITORPOSITION ==
Monitor Position data structure.
Monitor Position data structure.  


=== Type ===  
== Type ==
  [[USHORT]]  fPosition
  [[USHORT]]  fPosition
  USHORT  index
  USHORT  index
Line 8: Line 7:
  USHORT  offOutBuf
  USHORT  offOutBuf


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


=== Fields ===
== Fields ==
;fPosition - Placement flag.
;fPosition - Placement flag.
:The DosMonReg function call parameter that is used by an application to indicate:
:The DosMonReg function call parameter that is used by an application to indicate:

Latest revision as of 02:06, 21 February 2020

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.