read.c

来自「老外写的一个相当不错的虚拟显示器驱动」· C语言 代码 · 共 19 行

C
19
字号
#include "Driver.h"


#ifdef ALLOC_PRAGMA
#pragma alloc_text (PAGE, DispatchRead)
#endif


/*************************************************************************************************/
NTSTATUS DispatchRead(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
    PFDO_DATA deviceExtension = (PFDO_DATA)DeviceObject->DeviceExtension;

	// Insert IRP in our read queue. The IRQ handling routines will remove it from the queue.
    IoCsqInsertIrp(&deviceExtension->CSReadQueue, Irp, NULL);

	return STATUS_PENDING;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?