Device Type-Specific I/O Requests
Device-specific sections of the Windows Driver Kit (WDK) provide information about device type-specific I/O requests handled by the system-supplied drivers for the most common kinds of devices.
A new kernel-mode driver must handle the same set of I/O requests as a system-supplied driver if the new driver meets any of the following conditions:
The new driver replaces a system driver for the same type of device.
The new driver supports another device of a type already in the system.
The new driver is an intermediate (filter) driver, layered between two system-supplied drivers.
Such a new driver must handle every IRP_MJ_XXX request that the system-supplied drivers handle. In most cases, a new device driver should also handle the same set of IOCTL_XXX codes for IRP_MJ_DEVICE_CONTROL requests, even if the new driver must emulate the behavior of the corresponding system-supplied driver. Otherwise, the new driver might break user-mode applications that expect these kinds of requests to be honored.
For information about the NTSTATUS values that drivers can set in the I/O status block of IRPs, as the return value for specific requests, see Using NTSTATUS Values. For information about NTSTATUS values that can be specified in an error log packet, see Logging Errors. Use this information to decide on the appropriate status values to be returned by new drivers for similar types of devices, or as an aid in determining the appropriate status values to be returned by the driver for a new type of device.
For more information about various kinds of drivers and the requests that each is required to support, see the following:
For all other types of drivers, consult the documentation for the appropriate driver type.