dos12.hlp (Table of Contents; 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.
DosDevIOCtl (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVICES
 
USHORT DosDevIOCtl(pvData, pvParms, usFunction, usCategory, hDevice)
PVOID pvData;         /* pointer to buffer for data area         */
PVOID pvParms;        /* pointer to buffer for command arguments */
USHORT usFunction;    /* device function                         */
USHORT usCategory;    /* device category                         */
HFILE hDevice;        /* device handle                           */
 
The DosDevIOCtl function passes device-control functions to the device
specified by the hDevice parameter.
 
The DosDevIOCtl function is a family API function.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
pvData      Points to a buffer that receives data from the given control
            function. Some control functions may also read data from the
            buffer as part of their processing.
 
pvParms     Points to a buffer that contains any data required for the given
            control function. Some control functions may also copy data from
            the buffer as part of their processing.
 
usFunction  Specifies the device-control function. For a list of
            device-control function codes that can be used for this
            parameter, see the IOCtls topic.
 
usCategory  Specifies the device category. This parameter can be any of the
            following values:
 
                IOCTL_ASYNC
                IOCTL_SCR_AND_PTRDRAW
                IOCTL_KEYBOARD
                IOCTL_PRINTER
                IOCTL_LIGHTPEN
                IOCTL_POINTINGDEVICE
                IOCTL_DISK
                IOCTL_PHYSICALDISK
                IOCTL_MONITOR
                IOCTL_GENERAL
 
 
                                      ♦