system.cpp

来自「The PCI Local bus concept was developed 」· C++ 代码 · 共 54 行

CPP
54
字号
/*

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 + =
减小字号Ctrl + -
显示快捷键?