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

📄 system.cpp

📁 The PCI Local bus concept was developed to break the PC data I/O bottleneck and clearly opens the d
💻 CPP
字号:
/*

System.cpp

Sheldon Instruments, Inc.

Abstract:

	WMI processors for WDM driver.  Handles calls to IRP_MJ_SYSTEM_CONTROL.

Revision History:

	19Mar1999 - created by Robert Updike

*/

#include "driver.h" 

/*

Function name:

	Sheldon_ProcessSysControlIrp

Routine Description:

    Handles system requests.  WMI stands for Windows Management Instrumentation.  It will
	enable WDM to provide an operating system interface through which instrumented
	components can provide information and notifications.  Calls to this function are not
	handled by this driver, but passed down to the next level driver.

Arguments:

    fdo - pointer to a functional device object

    Irp -  I/O request being serviced

Return Value:

    NTSTATUS from lower level driver
    STATUS_PENDING if queued for further processing

*/
NTSTATUS Sheldon_ProcessSysControlIrp(IN PDEVICE_OBJECT fdo, IN PIRP Irp)
{
	KdPrint(("SIWDM - Entering Sheldon_ProcessSysControlIrp: IRP_MJ_SYSTEM_CONTROL\n"));

	IoSkipCurrentIrpStackLocation(Irp);
	PDEVICE_EXTENSION pdx = (PDEVICE_EXTENSION) fdo->DeviceExtension;

	KdPrint(("SIWDM - Exiting Sheldon_ProcessSysControlIrp\n"));

	return IoCallDriver(pdx->LowerDeviceObject, Irp);
}

⌨️ 快捷键说明

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