Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Ports
Serial
Reference
 IOCTL_SERIAL_GET_MODEM_CONTROL
Windows Driver Kit: Serial Devices
IOCTL_SERIAL_GET_MODEM_CONTROL

Operation

The IOCTL_SERIAL_GET_MODEM_CONTROL request returns the value of the modem control register.

To set the modem control register, a client can use an IOCTL_SERIAL_SET_MODEM_CONTROL request.

For information about modem control register settings, see the constants SERIAL_MCR_DTR through SERIAL_MCR_LOOP, which are defined in the header file \src\kernel\serial\serial.h in the Microsoft Windows Driver Kit (WDK).

Input

The Parameters.DeviceIoControl.OutputBufferLength is set to the size in bytes of a ULONG.

Output

The AssociatedIrp.SystemBuffer points to a client-allocated ULONG buffer that Serial uses to output the value of the modem control register.

I/O Status Block

If the request is successful, the Information member is set to the size in bytes of a ULONG. Otherwise, the Information member is set to zero.

The Status member is set to one of the Generic Status Values for Serial Device Control Requests.

Requirements

Headers: Defined in ntddser.h. Include ntddser.h.

See Also

IOCTL_SERIAL_SET_MODEM_CONTROL


Send feedback on this topic
Built on November 19, 2009
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker