WDF_REQUEST_TYPE enumeration

[Applies to KMDF and UMDF]

The WDF_REQUEST_TYPE enumeration type identifies types of requests that a framework request object might contain.

Syntax

typedef enum _WDF_REQUEST_TYPE {
  WdfRequestTypeCreate,
  WdfRequestTypeCreateNamedPipe,
  WdfRequestTypeClose,
  WdfRequestTypeRead,
  WdfRequestTypeWrite,
  WdfRequestTypeQueryInformation,
  WdfRequestTypeSetInformation,
  WdfRequestTypeQueryEA,
  WdfRequestTypeSetEA,
  WdfRequestTypeFlushBuffers,
  WdfRequestTypeQueryVolumeInformation,
  WdfRequestTypeSetVolumeInformation,
  WdfRequestTypeDirectoryControl,
  WdfRequestTypeFileSystemControl,
  WdfRequestTypeDeviceControl,
  WdfRequestTypeDeviceControlInternal,
  WdfRequestTypeShutdown,
  WdfRequestTypeLockControl,
  WdfRequestTypeCleanup,
  WdfRequestTypeCreateMailSlot,
  WdfRequestTypeQuerySecurity,
  WdfRequestTypeSetSecurity,
  WdfRequestTypePower,
  WdfRequestTypeSystemControl,
  WdfRequestTypeDeviceChange,
  WdfRequestTypeQueryQuota,
  WdfRequestTypeSetQuota,
  WdfRequestTypePnp,
  WdfRequestTypeOther,
  WdfRequestTypeUsb,
  WdfRequestTypeNoFormat,
  WdfRequestTypeMax
} WDF_REQUEST_TYPE;

Constants

WdfRequestTypeCreate The request object represents an IRP_MJ_CREATE request. The framework delivers this type of request to a driver's EvtDeviceFileCreate callback function.
WdfRequestTypeCreateNamedPipe The request object represents an IRP_MJ_CREATE_NAMED_PIPE request. The framework does not handle this type of request.
WdfRequestTypeClose The request object represents an IRP_MJ_CLOSE request. The framework delivers this type of request to a driver's EvtFileClose callback function.
WdfRequestTypeRead The request object represents an IRP_MJ_READ request. The framework delivers this type of request to a driver's request handler.
WdfRequestTypeWrite The request object represents an IRP_MJ_WRITE request. The framework delivers this type of request to a driver's request handler.
WdfRequestTypeQueryInformation The request object represents an IRP_MJ_QUERY_INFORMATION request. The framework does not handle this type of request.
WdfRequestTypeSetInformation The request object represents an IRP_MJ_SET_INFORMATION request. The framework does not handle this type of request.
WdfRequestTypeQueryEA The request object represents an IRP_MJ_QUERY_EA request. The framework does not handle this type of request.
WdfRequestTypeSetEA The request object represents an IRP_MJ_SET_EA request. The framework does not handle this type of request.
WdfRequestTypeFlushBuffers The request object represents an IRP_MJ_FLUSH_BUFFERS request. The framework does not handle this type of request.
WdfRequestTypeQueryVolumeInformation The request object represents an IRP_MJ_QUERY_VOLUME_INFORMATION request. The framework does not handle this type of request.
WdfRequestTypeSetVolumeInformation The request object represents an IRP_MJ_SET_VOLUME_INFORMATION request. The framework does not handle this type of request.
WdfRequestTypeDirectoryControl The request object represents an IRP_MJ_DIRECTORY_CONTROL request. The framework does not handle this type of request.
WdfRequestTypeFileSystemControl The request object represents an IRP_MJ_FILE_SYSTEM_CONTROL request. The framework does not handle this type of request.
WdfRequestTypeDeviceControl The request object represents an IRP_MJ_DEVICE_CONTROL request. The framework delivers this type of request to a driver's request handler.
WdfRequestTypeDeviceControlInternal The request object represents an IRP_MJ_INTERNAL_DEVICE_CONTROL request. The framework delivers this type of request to a driver's request handler.
WdfRequestTypeShutdown The request object represents an IRP_MJ_SHUTDOWN request. The framework handles this type of request for the driver, but the framework also calls the driver's EvtDeviceShutdownNotification callback function, if it exists.
WdfRequestTypeLockControl The request object represents an IRP_MJ_LOCK_CONTROL request. The framework does not handle this type of request.
WdfRequestTypeCleanup The request object represents an IRP_MJ_CLEANUP request. The framework delivers this type of request to a driver's EvtFileCleanup callback function.
WdfRequestTypeCreateMailSlot The request object represents an IRP_MJ_CREATE_MAILSLOT request. The framework does not handle this type of request.
WdfRequestTypeQuerySecurity The request object represents an IRP_MJ_QUERY_SECURITY request. The framework does not handle this type of request.
WdfRequestTypeSetSecurity The request object represents an IRP_MJ_SET_SECURITY request. The framework does not handle this type of request.
WdfRequestTypePower The request object represents an IRP_MJ_POWER request. The framework handles this type of request for the driver, but the framework also calls the driver's general, FDO, and PDO callback functions for Plug and Play (PnP) and power management, if the callback functions exist.
WdfRequestTypeSystemControl The request object represents an IRP_MJ_SYSTEM_CONTROL request. The framework handles this type of request for the driver, if the driver supports Windows Management Instrumentation (WMI).
WdfRequestTypeDeviceChange The request object represents an IRP_MJ_DEVICE_CHANGE request. The framework does not handle this type of request.
WdfRequestTypeQueryQuota The request object represents an IRP_MJ_QUERY_QUOTA request. The framework does not handle this type of request.
WdfRequestTypeSetQuota The request object represents an IRP_MJ_SET_QUOTA request. The framework does not handle this type of request.
WdfRequestTypePnp The request object represents an IRP_MJ_PNP request. The framework handles this type of request for the driver, but the framework also calls the driver's general, FDO, and PDO callback functions for PnP and power management, if the callback functions exist.
WdfRequestTypeOther A driver receives this request type in its CompletionRoutine event callback function when requests formatted with WdfIoTargetFormatRequestForInternalIoctlOthers are completed.
WdfRequestTypeUsb The target device is a USB device. (This value is used only in WDF_REQUEST_COMPLETION_PARAMS structures.)
WdfRequestTypeNoFormat The request object's type has not been specified.
WdfRequestTypeMax The maximum value that has been assigned to a valid IRP major function code.

Remarks

The WDF_REQUEST_TYPE enumeration type is used in the WDF_REQUEST_PARAMETERS and WDF_REQUEST_COMPLETION_PARAMS structures.

For information about how a framework-based driver can handle request types that the framework does not support, see Handling an IRP that the Framework Does Not Support.

For the UMDF version of this enumeration, see WDF_REQUEST_TYPE (UMDF).

Requirements

   
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfrequest.h (include Wdf.h)

See also

EvtDeviceFileCreate

EvtDeviceShutdownNotification

EvtFileCleanup

EvtFileClose