qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
IOCTL Statement, IOCTL$ Function
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
IOCTL transmits a control string to a device driver.
IOCTL$ returns current status information from a device driver.
 
IOCTL [#]filenumber%, string$
IOCTL$([#]filenumber%)
 
    ■ filenumber%    The number of an open device.
    ■ string$        The control string sent to the device.
 
    ■ IOCTL control strings and the information returned by IOCTL$ depend
      on the device driver. See your device-driver documentation for
      information about IOCTL control strings and what is returned by IOCTL$.