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

WDF_IO_QUEUE_STOPPED 函数

The WDF_IO_QUEUE_STOPPED function returns TRUE if an I/O queue's state indicates that the queue is stopped.

语法

BOOLEAN WDF_IO_QUEUE_STOPPED(
  __in  WDF_IO_QUEUE_STATE State
);

参数

State [in]

A WDF_IO_QUEUE_STATE-typed value that WdfIoQueueGetState returns.

返回值

WDF_IO_QUEUE_STOPPED returns TRUE if the specified queue state indicates that the queue is stopped. Otherwise, the function returns FALSE.

评论

An I/O queue is stopped if it can accept new I/O requests but the framework is not delivering them to the driver.

Your driver can call WDF_IO_QUEUE_STOPPED after it has called WdfIoQueueGetState.

For more information about I/O queue states, see WDF_IO_QUEUE_STATE.

示例

The following code example is a routine that returns TRUE if a specified I/O queue is stopped.

BOOLEAN
IsQueueStopped(
    IN WDFQUEUE Queue
    )
{
    WDF_IO_QUEUE_STATE queueStatus;
    queueStatus = WdfIoQueueGetState(
                                     Queue,
                                     NULL,
                                     NULL
                                     );
    return (WDF_IO_QUEUE_STOPPED(queueStatus)) ? TRUE : FALSE;
}

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdfio.h (包括Wdf.h)

None.

IRQL

Any IRQL.

另请参见

WDF_IO_QUEUE_DRAINED
WDF_IO_QUEUE_IDLE
WDF_IO_QUEUE_PURGED
WDF_IO_QUEUE_READY

 

 

社区附加资源

添加
显示:
© 2015 Microsoft