Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:docs:fapi:dosdevioctl2 [2021/08/20 04:38] – prokushev | en:docs:fapi:dosdevioctl2 [2023/11/26 12:37] (current) – [Remarks] prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{page> | {{page> | ||
| + | ====== DosDevIOCtl2 ====== | ||
| + | |||
| This call performs control functions on a device specified by an opened device handle. | This call performs control functions on a device specified by an opened device handle. | ||
| - | ==Syntax== | + | ===== Syntax ===== |
| + | <code c> | ||
| | | ||
| | | ||
| + | </ | ||
| + | ===== Parameters ===== | ||
| - | ==Parameters== | + | * Data ([[PVOID]]) - input : Address of the data area. |
| - | ;Data ([[PVOID]]) - input : Address of the data area. | + | |
| - | ;DataLength ([[USHORT]]) - input : Length of the data buffer. | + | |
| - | ;ParmList (PVOID) - input : Address of the command-specific argument list. | + | |
| - | ;ParmListLength (USHORT) - input : Length of the command-specific argument list. | + | |
| - | ;Function (USHORT) - input : Device-specific function code. | + | |
| - | ;Category (USHORT) - input : Device category. | + | |
| - | ;DevHandle ([[HFILE]]) - input : Device handle returned by DosOpen or a standard (open) device handle. | + | |
| - | ==Return Code== | + | ===== Return Code ===== |
| - | ;rc (USHORT) - return: | + | |
| - | * 0 NO_ERROR | + | rc ([[USHORT]]) - return: |
| - | * 1 ERROR_INVALID_FUNCTION | + | |
| - | * 6 ERROR_INVALID_HANDLE | + | |
| - | *15 ERROR_INVALID_DRIVE | + | * 1 ERROR_INVALID_FUNCTION |
| - | *31 ERROR_GEN_FAILURE | + | * 6 ERROR_INVALID_HANDLE |
| - | *87 ERROR_INVALID_PARAMETER | + | *15 ERROR_INVALID_DRIVE |
| - | *115 ERROR_PROTECTION_VIOLATION | + | *31 ERROR_GEN_FAILURE |
| - | *117 ERROR_INVALID_CATEGORY | + | *87 ERROR_INVALID_PARAMETER |
| - | *119 ERROR_BAD_DRIVER_LEVEL | + | *115 ERROR_PROTECTION_VIOLATION |
| - | *163 ERROR_UNCERTAIN_MEDIA | + | *117 ERROR_INVALID_CATEGORY |
| - | *165 ERROR_MONITORS_NOT_SUPPORTED | + | *119 ERROR_BAD_DRIVER_LEVEL |
| + | *163 ERROR_UNCERTAIN_MEDIA | ||
| + | *165 ERROR_MONITORS_NOT_SUPPORTED | ||
| + | |||
| + | ===== Remarks ===== | ||
| - | ==Remarks== | ||
| Values returned in the range hex FF00 through FFFF are user dependent error codes. Values returned in the range hex FE00 through FEFF are device driver dependent error codes. | Values returned in the range hex FF00 through FFFF are user dependent error codes. Values returned in the range hex FE00 through FEFF are device driver dependent error codes. | ||
| - | Refer to the '' | + | Refer to the [[http:// |
| This function provides a generic, expandable IOCTL facility. | This function provides a generic, expandable IOCTL facility. | ||
| Line 45: | Line 52: | ||
| Do not pass a non-null pointer with a zero length. | Do not pass a non-null pointer with a zero length. | ||
| - | ==Bindings== | + | ===== Bindings ===== |
| - | ===C=== | + | |
| - | <PRE> | + | ==== C ==== |
| + | |||
| + | <code c> | ||
| #define INCL_DOSDEVICES | #define INCL_DOSDEVICES | ||
| Line 61: | Line 70: | ||
| USHORT | USHORT | ||
| - | </PRE> | + | </code> |
| - | ===MASM=== | + | ==== MASM ==== |
| - | <PRE> | + | |
| + | <code asm> | ||
| EXTRN DosDevIOCtl2: | EXTRN DosDevIOCtl2: | ||
| INCL_DOSDEVICES | INCL_DOSDEVICES | ||
| Line 77: | Line 87: | ||
| CALL | CALL | ||
| - | Returns WORD | + | </code> |
| - | </PRE> | + | |
| + | Returns WORD | ||
| {{page> | {{page> | ||




