Collapse the table of content
Expand the table of content
展開 最小化

WDF_IO_QUEUE_CONFIG_INIT 関数

The WDF_IO_QUEUE_CONFIG_INIT function initializes a driver's WDF_IO_QUEUE_CONFIG structure.

構文

VOID WDF_IO_QUEUE_CONFIG_INIT(
  __out  PWDF_IO_QUEUE_CONFIG Config,
  __in   WDF_IO_QUEUE_DISPATCH_TYPE DispatchType
);

パラメーター

Config [out]

A pointer to the driver's WDF_IO_QUEUE_CONFIG structure.

DispatchType [in]

A WDF_IO_QUEUE_DISPATCH_TYPE enumerator that identifies the request dispatching type for the queue.

戻り値

None

解説

Drivers should call WDF_IO_QUEUE_CONFIG_INIT when creating a power-managed I/O queue that is not a device's default queue. The WDF_IO_QUEUE_CONFIG_INIT function zeros the specified WDF_IO_QUEUE_CONFIG structure and sets its Size member. It also sets the PowerManaged member to WdfUseDefault and stores the specified dispatching type in the DispatchType member.

Beginning with version 1.9 of KMDF, WDF_IO_QUEUE_CONFIG_INIT also sets the structure's NumberOfPresentedRequests member to -1.

The following code example initializes WDF_IO_QUEUE_CONFIG structure and then calls WdfIoQueueCreate.

WDF_IO_QUEUE_CONFIG  queueConfig;
NTSTATUS  status = STATUS_SUCCESS;
WDFQUEUE  readQueue;

WDF_IO_QUEUE_CONFIG_INIT(
                         &queueConfig,
                         WdfIoQueueDispatchManual
                         );
status = WdfIoQueueCreate(
                          hDevice,
                          &queueConfig,
                          WDF_NO_OBJECT_ATTRIBUTES,
                          &readQueue
                          );

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfio.h (includeWdf.h)

参照

WDF_IO_QUEUE_CONFIG
WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE
WDF_IO_QUEUE_DISPATCH_TYPE
WdfIoQueueCreate

 

 

コミュニティの追加

追加
表示:
© 2015 Microsoft