[out] Config 驅動程式WDF_IO_QUEUE_CONFIG結構的指標。 [in] DispatchType 識別佇列要求分派類型的WDF_IO_QUEUE_DISPATCH_TYPE列舉值。 傳回值 無 備註 驅動程式在建立電源管理的 I/O 佇列是裝置的預設佇列時,應該呼叫WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE。WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE...
void WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE( [out] PWDF_IO_QUEUE_CONFIG Config, [in] WDF_IO_QUEUE_DISPATCH_TYPE DispatchType ); 参数[out] Config指向驱动程序 WDF_IO_QUEUE_CONFIG 结构的指针。[in] DispatchType标识队列的请求调度类型的 WDF_IO_QUEUE_DISPATCH_TYPE 枚举器。返回...
AWDF_IO_QUEUE_DISPATCH_TYPEenumerator that identifies the request dispatching type for the queue. Return value None Remarks Drivers should callWDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUEwhen creating a power-managed I/O queue that is a device's default queue. TheWDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEU...
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 ); Requirements...
WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE function WDF_IO_QUEUE_DISPATCH_TYPE enumeration WDF_IO_QUEUE_DRAINED function WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY structure WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY_DEFAULT_INIT function WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY_EXAMINE_INIT function ...
WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE( &ioQueueConfig, WdfIoQueueDispatchSequential ); ioQueueConfig.EvtIoDefault = MyEvtIoDefault; status = WdfIoQueueCreate( device, &ioQueueConfig, WDF_NO_OBJECT_ATTRIBUTES, &hQueue ); if (!NT_SUCCESS (status)) { return status; } ... } ...
return (FxPackage*) m_PkgIo; case IRP_MJ_SYSTEM_CONTROL: return (FxPackage*) m_PkgWmi; case IRP_MJ_PNP: case IRP_MJ_POWER: if (m_PkgPnp != NULL) { return (FxPackage*) m_PkgPnp; } else { return (FxPackage*) m_PkgDefault; ...
The following example shows how to create a manual power-managed queue for a KMDF filter driver. Copy NTSTATUS MyDriver_EvtDriverDeviceAdd( __in WDFDRIVER Driver, __in PWDFDEVICE_INIT DeviceInit ) { WDFDEVICE device; WDF_IO_QUEUE_CONFIG ioQueueConfig; PDEVICE_CONTEXT pDevContext; WDFQUEUE...
EVT_WDF_IO_QUEUE_IO_DEVICE_CONTROL EvtWdfIoQueueIoDeviceControl;voidEvtWdfIoQueueIoDeviceControl( [in] WDFQUEUE Queue, [in] WDFREQUEST Request, [in]size_tOutputBufferLength, [in]size_tInputBufferLength, [in] ULONG IoControlCode ){...} ...
IQueueCallbackCreate interface IQueueCallbackDefaultIoHandler interface IQueueCallbackDeviceIoControl interface IQueueCallbackIoCanceledOnQueue interface IQueueCallbackIoResume interface IQueueCallbackIoStop interface IQueueCallbackRead interface IQueueCallbackStateChange interface ...