Bewerken

Delen via


IWDFDevice::ConfigureRequestDispatching method (wudfddi.h)

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

The ConfigureRequestDispatching method configures the queuing of I/O requests of the specified type to the specified I/O queue.

Syntax

HRESULT ConfigureRequestDispatching(
  [in] IWDFIoQueue      *pQueue,
  [in] WDF_REQUEST_TYPE RequestType,
  [in] BOOL             Forward
);

Parameters

[in] pQueue

A pointer to the IWDFIoQueue interface for the I/O queue to configure.

[in] RequestType

A WDF_REQUEST_TYPE-typed value that identifies the request type to be queued. The only valid WDF_REQUEST_TYPE values are WdfRequestCreate, WdfRequestRead, WdfRequestWrite, and WdfRequestDeviceIoControl.

[in] Forward

A BOOL value that specifies whether requests of the specified type are queued. TRUE indicates to enable queuing requests; FALSE indicates to disable queuing requests.

Return value

ConfigureRequestDispatching returns S_OK if the operation succeeds. Otherwise, this method returns one of the error codes that are defined in Winerror.h.

Requirements

Requirement Value
End of support Unavailable in UMDF 2.0 and later.
Target Platform Desktop
Minimum UMDF version 1.5
Header wudfddi.h (include Wudfddi.h)
DLL WUDFx.dll

See also

IWDFDevice

IWDFIoQueue

WDF_REQUEST_TYPE