ASYNC SETMODEMCTRL: Difference between revisions
Appearance
Created page with "This function sets the modem control signals. ; Category:IOCTL_ASYNC (01h) ; Function:ASYNC_SETMODEMCTRL (46h) ==Parameter Packet Format== <pre> ┌───────..." |
(No difference)
|
Revision as of 00:06, 23 April 2020
This function sets the modem control signals.
- Category
- IOCTL_ASYNC (01h)
- Function
- ASYNC_SETMODEMCTRL (46h)
Parameter Packet Format
┌──────────────────────────────────────────────────────┐ │Field Length C Datatype │ ├──────────────────────────────────────────────────────┤ │Modem Control Signals ON Mask BYTE BYTE │ ├──────────────────────────────────────────────────────┤ │Modem Control Signals OFF Mask BYTE BYTE │ └──────────────────────────────────────────────────────┘
- Related C Data Structure
The MODEMSTATUS data structure can be used by C programmers.
To include this data structure in your file, make sure INCL_DOSDEVIOCTL is defined before you include OS2.H.
Data Packet Format
┌───────────────────────────────────────────────────┐ │Field Length C Datatype │ ├───────────────────────────────────────────────────┤ │COM Error WORD (COMERR) WORD USHORT │ └───────────────────────────────────────────────────┘
Returns
If the call is made with invalid Parameter Packet values and a general failure error is reported, then the modem control signals are not changed and the Data Packet information returned to the application is undefined.