examplefilter.h
来自「This the fourth edition of the Writing D」· C头文件 代码 · 共 50 行
H
50 行
/**********************************************************************
*
* Toby Opferman
*
* Driver Example
*
* This example is for educational purposes only. I license this source
* out for use in learning how to write a device driver.
*
* Driver Shared Header File
**********************************************************************/
#ifndef __EXAMPLE_FILTER_H__
#define __EXAMPLE_FILTER_H__
typedef unsigned int UINT;
typedef char * PCHAR;
/* #define __USE_DIRECT__ */
#define __USE_BUFFERED__
NTSTATUS ExampleFilter_Create(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS ExampleFilter_Close(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS ExampleFilter_IoControl(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS ExampleFilter_Write(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS ExampleFilter_Read(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS ExampleFilter_UnSupportedFunction(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS ExampleFilter_IoControlInternal(PDEVICE_OBJECT DeviceObject, PIRP Irp);
typedef struct _EXAMPLE_FILTER_EXTENSION
{
PDEVICE_OBJECT pNextDeviceInChain;
} EXAMPLE_FILTER_EXTENSION, *PEXAMPLE_FILTER_EXTENSION;
#define EXAMPLE_FILTER_POOL_TAG ((ULONG)'pxEF')
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?