charfilterdevice.h

来自「windows 2000/xpWDM设备驱动程序开发光盘代码」· C头文件 代码 · 共 55 行

H
55
字号
// CharFilterDevice.h
//
// Generated by DriverWizard version DriverStudio 3.1.0 (Build 1722)
// Requires Compuware's DriverWorks classes
//

#ifndef __CharFilterDevice_h__
#define __CharFilterDevice_h__

// Forward declaration
class CharFilterDevice;

struct READ_COMPLETION_INFO
{
	CharFilterDevice*	m_pClass;
	ULONG nin;
	PCHAR cin;
	ULONG nout;
	PCHAR cout;
};

class CharFilterDevice : public KWdmFilterDevice
{
	SAFE_DESTRUCTORS
public:
	CharFilterDevice(PDEVICE_OBJECT Pdo, ULONG unit);

	virtual NTSTATUS DeviceControl(KIrp I);			

	MEMBER_PASSTHROUGH_COMPLETE(CharFilterDevice, IrpCompletionRoutine);

#ifdef _COMMENT_ONLY

		// The following member functions are actually defined by the
		// a DEVMEMBER_xxx or MEMBER_xxx macro (such as DEVMEMBER_DISPATCHERS).
		// The macro __COMMENT_ONLY never gets defined.  These comment-only
		// definitions simply allow easy navigation to the functions within
		// the Developer Studio using the class browser.

	NTSTATUS IrpCompletionRoutine(KIrp I);
#endif


	KPnpLowerDevice	m_Lower;
	ULONG			m_Unit;
private:

	//Prevent the compiler from generating default copy 
	//constructor and assignment operator
	CharFilterDevice(CharFilterDevice&);
	operator=(CharFilterDevice&);
};


#endif

⌨️ 快捷键说明

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