⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 custom.c

📁 基于DDK的驱动间同步调用测试示例程序,DriverA是目标驱动,DriverB是主驱动,test是MFC测试示例
💻 C
字号:
#include "pch.h"
#include "..\intrface.h"
#ifdef DRIVERA_WMI_TRACE
#include "custom.tmh"
#endif

#pragma LOCKEDCODE
VOID OnTimerDPC(IN PKDPC pDPC,
				IN PVOID pContext,
				IN PVOID SysArg1,
				IN PVOID SysArg2)
{
	PDEVICE_OBJECT deviceObject;
    PDRIVERA_DEVICE_EXTENSION   deviceExtension;
	PIRP currentPendingIRP;

	deviceObject = (PDEVICE_OBJECT)pContext;
	deviceExtension = (PDRIVERA_DEVICE_EXTENSION)deviceObject->DeviceExtension;
	currentPendingIRP = deviceExtension->CurrentPendingIrp;

	KdPrint(("DriverA:complete the Driver A IRP_MJ_READ irp!\n"));

	currentPendingIRP->IoStatus.Status = STATUS_SUCCESS;
	currentPendingIRP->IoStatus.Information = 0;
	IoCompleteRequest(currentPendingIRP,IO_NO_INCREMENT);
}

⌨️ 快捷键说明

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