// ks.h
typedef struct {
PDRIVER_DISPATCH DeviceIoControl;
PDRIVER_DISPATCH Read;
PDRIVER_DISPATCH Write;
PDRIVER_DISPATCH Flush;
PDRIVER_DISPATCH Close;
PDRIVER_DISPATCH QuerySecurity;
PDRIVER_DISPATCH SetSecurity;
PFAST_IO_DEVICE_CONTROL FastDeviceIoControl;
PFAST_IO_READ FastRead;
PFAST_IO_WRITE FastWrite;
} KSDISPATCH_TABLE, *PKSDISPATCH_TABLE;
View the official Windows Driver Kit DDI referenceNo description available.
The KSDISPATCH_TABLE structure contains pointers to minidriver implemented IRP dispatch routines.
DeviceIoControlSpecifies the minidriver's routine to dispatch IRP_MJ_DEVICE_CONTROL IRPs to.
ReadSpecifies the minidriver's routine to dispatch IRP_MJ_READ IRPs to.
WriteSpecifies the minidriver's routine to dispatch IRP_MJ_WRITE IRPs to.
FlushSpecifies the minidriver's routine to dispatch IRP_MJ_FLUSH_BUFFERS IRPs to.
CloseSpecifies the minidriver's routine to dispatch IRP_MJ_CLOSE IRPs to.
QuerySecuritySpecifies the minidriver's routine to dispatch IRP_MJ_QUERY_SECURITY IRPs to.
SetSecuritySpecifies the minidriver's routine to dispatch IRP_MJ_SET_SECURITY IRPs to.
FastDeviceIoControlSpecifies the minidriver's routine to dispatch fast device I/O control requests to.
FastReadSpecifies the minidriver's routine to dispatch fast read requests to.
FastWriteSpecifies the minidriver's routine to dispatch fast write requests to.
A pointer to a dispatch table is contained in the opaque object header that is the first element of data pointed to by the file object's FsContext field.
For more information about minidriver implemented IRP dispatch routines, see KsSetMajorFunctionHandler, and DRIVER_OBJECT.