Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:ibm:prcp:kbd:strin [2014/05/16 19:21] – valerius | en:ibm:prcp:kbd:strin [2016/09/15 03:00] (current) – valerius | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== KndStringIn ==== | ==== KndStringIn ==== | ||
| - | **Bindings**: | + | **Bindings**: |
| - | + | ||
| - | **C**: | + | |
| - | <code c> | + | |
| - | typedef struct _STRINGINBUF { /* kbsi */ | + | |
| - | USHORT cb; /* input buffer length */ | + | |
| - | USHORT cchIn; | + | |
| - | } STRINGINBUF; | + | |
| - | + | ||
| - | #define INCL_KBD | + | |
| - | + | ||
| - | USHORT | + | |
| - | + | ||
| - | PCH CharBuffer; | + | |
| - | PSTRINGINBUF | + | |
| - | USHORT | + | |
| - | HKBD | + | |
| - | + | ||
| - | USHORT | + | |
| - | </ | + | |
| - | + | ||
| - | **MASM**: | + | |
| - | <code asm> | + | |
| - | STRINGINBUF struc | + | |
| - | kbsi_cb | + | |
| - | kbsi_cchIn dw ? ;received input length | + | |
| - | STRINGINBUF ends | + | |
| - | + | ||
| - | EXTRN KbdStringIn: | + | |
| - | INCL_KBD | + | |
| - | + | ||
| - | PUSH@ OTHER | + | |
| - | PUSH@ OTHER | + | |
| - | PUSH | + | |
| - | PUSH | + | |
| - | CALL | + | |
| - | + | ||
| - | Returns WORD | + | |
| - | </ | + | |
| This call reads a character string (character codes only) from the keyboard. | This call reads a character string (character codes only) from the keyboard. | ||
| Line 101: | Line 63: | ||
| Refer to the //DosRead// Family API Considerations for differences between DOS and OS/2 node when reading from a handle opened to the CON device. | Refer to the //DosRead// Family API Considerations for differences between DOS and OS/2 node when reading from a handle opened to the CON device. | ||
| + | |||
| + | === C bindings === | ||
| + | |||
| + | <code c> | ||
| + | typedef struct _STRINGINBUF { /* kbsi */ | ||
| + | USHORT cb; /* input buffer length */ | ||
| + | USHORT cchIn; | ||
| + | } STRINGINBUF; | ||
| + | |||
| + | #define INCL_KBD | ||
| + | |||
| + | USHORT | ||
| + | |||
| + | PCH CharBuffer; | ||
| + | PSTRINGINBUF | ||
| + | USHORT | ||
| + | HKBD | ||
| + | |||
| + | USHORT | ||
| + | </ | ||
| + | |||
| + | === MASM bindings === | ||
| + | |||
| + | <code asm> | ||
| + | STRINGINBUF struc | ||
| + | kbsi_cb | ||
| + | kbsi_cchIn dw ? ;received input length | ||
| + | STRINGINBUF ends | ||
| + | |||
| + | EXTRN KbdStringIn: | ||
| + | INCL_KBD | ||
| + | |||
| + | PUSH@ OTHER | ||
| + | PUSH@ OTHER | ||
| + | PUSH | ||
| + | PUSH | ||
| + | CALL | ||
| + | |||
| + | Returns WORD | ||
| + | </ | ||




