driver.h

来自「微软出版社出版」· C头文件 代码 · 共 31 行

H
31
字号
// Declarations for suballoc driver

// Copyright (C) 1999 by Walter Oney

// All rights reserved



#ifndef DRIVER_H

#define DRIVER_H



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

#define LDRIVERNAME L"SUBALLOC"				// 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

	} DEVICE_EXTENSION, *PDEVICE_EXTENSION;



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

// Global functions



VOID RemoveDevice(IN PDEVICE_OBJECT fdo);

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



extern BOOLEAN win98;

extern UNICODE_STRING servkey;



#endif // DRIVER_H

⌨️ 快捷键说明

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