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

📄 driver.h

📁 Programming the Microsoft Windows Driver Model(2nd)
💻 H
字号:
// Declarations for powtrace driver

// Copyright (C) 1999, 2000 by Walter Oney

// All rights reserved



#pragma once



#define DRIVERNAME "POWTRACE"				// for use in messages

#define LDRIVERNAME L"POWTRACE"				// for use in UNICODE string constants



///////////////////////////////////////////////////////////////////////////////

// Device extension structure



typedef struct _DEVICE_EXTENSION {

	PDEVICE_OBJECT DeviceObject;			// device object this extension belongs to

	PDEVICE_OBJECT LowerDeviceObject;		// next lower driver in same stack

	PDEVICE_OBJECT Pdo;						// the PDO

	IO_REMOVE_LOCK RemoveLock;				// removal control locking structure

	BOOLEAN CapabilitiesDumped;				// true if capabilities ever dumped for this device

	BOOLEAN filetrace;						// TRUE if want to dump messages to a file too

	} DEVICE_EXTENSION, *PDEVICE_EXTENSION;



///////////////////////////////////////////////////////////////////////////////

// Context structure for PowerTraceWorkitem function



typedef struct _POWTRACE_CONTEXT {

	PIO_WORKITEM item;

	char msg[1];

	} POWTRACE_CONTEXT, *PPOWTRACE_CONTEXT;



///////////////////////////////////////////////////////////////////////////////

// Global functions



VOID RemoveDevice(IN PDEVICE_OBJECT fdo);

NTSTATUS CompleteRequest(IN PIRP Irp, IN NTSTATUS status, IN ULONG_PTR info);

⌨️ 快捷键说明

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