情報
要求されたトピックは次のとおりです。しかし、このトピックはこのライブラリには含まれていません。

WDF_REQUEST_SEND_OPTIONS_FLAGS 列挙型

The WDF_REQUEST_SEND_OPTIONS_FLAGS enumeration type defines flags that are used in a driver's WDF_REQUEST_SEND_OPTIONS structure.

構文

typedef enum _WDF_REQUEST_SEND_OPTIONS_FLAGS {
  WDF_REQUEST_SEND_OPTION_TIMEOUT               = 0x0000001,
  WDF_REQUEST_SEND_OPTION_SYNCHRONOUS           = 0x0000002,
  WDF_REQUEST_SEND_OPTION_IGNORE_TARGET_STATE   = 0x0000004,
  WDF_REQUEST_SEND_OPTION_SEND_AND_FORGET       = 0x0000008 
} WDF_REQUEST_SEND_OPTIONS_FLAGS;

定数

WDF_REQUEST_SEND_OPTION_TIMEOUT

If the driver sets this flag, the Timeout member of the WDF_REQUEST_SEND_OPTIONS structure is valid.

WDF_REQUEST_SEND_OPTION_SYNCHRONOUS

If the driver sets this flag, the framework handles the associated I/O request synchronously. (The driver does not have to set this flag if it is calling an object method whose name ends with "Synchronously", such as WdfIoTargetSendReadSynchronously.)

WDF_REQUEST_SEND_OPTION_IGNORE_TARGET_STATE

If the driver sets this flag, the framework sends the I/O request to the I/O target, regardless of the I/O target's state. If not set, the framework queues the request if the target is stopped. Setting this flag allows a driver to send a request, such as a request to reset a USB pipe, to a device after the driver has called WdfIoTargetStop.

WDF_REQUEST_SEND_OPTION_SEND_AND_FORGET

If the driver sets this flag, the driver is sending the request asynchronously and does not need to be notified when the request is completed or canceled. The driver does not set a CompletionRoutine callback function or call WdfRequestComplete for the request. If the driver sets this flag, it cannot set any other flags. For more information about this flag, see the following Remarks section.

解説

A driver that sets the WDF_REQUEST_SEND_OPTION_SEND_AND_FORGET flag typically does not format the I/O request before it calls WdfRequestSend to send the request to an I/O target. In fact, a driver that sets this flag must not call any of the WdfIoTargetFormatRequestForXxx methods before it calls WdfRequestSend. The driver can use only the WdfRequestFormatRequestUsingCurrentType or WdfRequestWdmFormatUsingStackLocation method to format the request.

Your driver cannot set the WDF_REQUEST_SEND_OPTION_SEND_AND_FORGET flag in the following situations:

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

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfrequest.h (includeWdf.h)

参照

WdfIoTargetStop
WDF_REQUEST_SEND_OPTIONS

 

 

コミュニティの追加

表示:
© 2014 Microsoft