Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:ibm:prcp:mou:register [2016/02/04 03:46] – valerius | en:ibm:prcp:mou:register [2016/09/15 04:19] (current) – valerius | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== MouRegister ==== | ==== MouRegister ==== | ||
- | **Bindings**: | + | **Bindings**: |
This call registers a mouse subsystem within a session. | This call registers a mouse subsystem within a session. | ||
Line 10: | Line 10: | ||
Address of the dynamic link module name. The maximum length is 9 bytes (including ASCIIZ terminator). | Address of the dynamic link module name. The maximum length is 9 bytes (including ASCIIZ terminator). | ||
- | //EntryNam/// (**PSZ**) - input | + | //EntryName// (**PSZ**) - input |
Address of the dynamic link entry point name of a routine that receives control when any of the registered functions are called. The maximum length is 33 bytes (including ASCIIZ terminator). | Address of the dynamic link entry point name of a routine that receives control when any of the registered functions are called. The maximum length is 33 bytes (including ASCIIZ terminator). | ||
Line 54: | Line 54: | ||
**Remarks** | **Remarks** | ||
- | The Base Mouse Subsystem is the default mouse subsystem. There can be only one MouRegister outstanding for each session without an intervening MouDeRegister. MouDeRegister must be issued by the same process that issued MouRegister. | + | The Base Mouse Subsystem is the default mouse subsystem. There can be only one [[en: |
- | When any registered function is called, control is routed to EntryName. When this routine is entered, four additional values are pushed onto the stack. The first is the index number (Word) of the function being called. The second is a near pointer (Word). The third is the caller' | + | When any registered function is called, control is routed to //EntryName//. When this routine is entered, four additional values are pushed onto the stack. The first is the index number (Word) of the function being called. The second is a near pointer (Word). The third is the caller' |
<code asm> | <code asm> | ||
Line 80: | Line 80: | ||
Do not invoke the Base Mouse Subsystem Routine. Return AX = error. | Do not invoke the Base Mouse Subsystem Routine. Return AX = error. | ||
- | When the mouse router receives a mouse call, it routes it to the Base Mouse Subsystem unless an application or other mouse subsystem has previously issued MouRegister for that call. If the call was registered, the subsystem is entered at the EntryName specified, and provided with the applicable function code. | + | When the mouse router receives a mouse call, it routes it to the Base Mouse Subsystem unless an application or other mouse subsystem has previously issued |
The registered function mask is used to determine whether a requested function is performed by the registered mouse subsystem or default to the Base Mouse Subsystem. | The registered function mask is used to determine whether a requested function is performed by the registered mouse subsystem or default to the Base Mouse Subsystem. | ||
Line 111: | Line 111: | ||
A registered mouse sybsystem must leave the stack, on exit, in the exact state it was received. | A registered mouse sybsystem must leave the stack, on exit, in the exact state it was received. | ||
+ | |||
+ | === C bindings === | ||
+ | |||
+ | <code c> | ||
+ | #define INCL_MOU | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | PSZ ModuleName; | ||
+ | PSZ EntryName; | ||
+ | ULONG Mask; /* Function Mask */ | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | === MASM bindings === | ||
+ | |||
+ | <code asm> | ||
+ | EXTRN | ||
+ | INCL_MOU | ||
+ | |||
+ | PUSH@ ASCIIZ | ||
+ | PUSH@ ASCIIZ | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||