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

📄 isaintdevice.h

📁 数据采集卡(ISA)驱动程序源代码
💻 H
字号:
// ISAINTDevice.h
//
// Generated by DriverWizard version DriverStudio 3.0.0 (Build 1126)
// Requires Compuware's DriverWorks classes
//

#ifndef __ISAINTDevice_h__
#define __ISAINTDevice_h__

// TODO:	The wizard creates a single driver managed queue class.
//			You may choose to create additional classes derived from
//			KDriverManagedQueueEx to help manage Irp processing.	
class ISAINTDevice_DriverManagedQueue : public KDriverManagedQueueEx
{
public:
	SAFE_DESTRUCTORS;
	VOID StartIo(KIrp I);
};

class ISAINTDevice : public KPnpDevice
{
	// Constructors
public:
	SAFE_DESTRUCTORS;
	ISAINTDevice(PDEVICE_OBJECT Pdo, ULONG Unit);
	~ISAINTDevice();

	// Member Functions
public:
	DEVMEMBER_DISPATCHERS
		// The ISR (interrupt service routine)
	MEMBER_ISR(ISAINTDevice, Isr_Irq);
		// The DPC (deferred procedure call) for the ISR
	MEMBER_DPC(ISAINTDevice, DpcFor_Irq);
	virtual NTSTATUS OnStartDevice(KIrp I);
	virtual NTSTATUS OnStopDevice(KIrp I);
	virtual NTSTATUS OnRemoveDevice(KIrp I);
	VOID Invalidate(void);
	virtual NTSTATUS DefaultPnp(KIrp I);
	virtual NTSTATUS DefaultPower(KIrp I);
	void SerialRead(KIrp I);
	void SerialWrite(KIrp I);
	NTSTATUS ISAINT_IOCTL_READ_PORT_Handler(KIrp I);
	NTSTATUS ISAINT_IOCTL_WRITE_PORT_Handler(KIrp I);
	NTSTATUS ISAINT_IOCTL_INTEVENT_Handler(KIrp I);

#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.

	BOOLEAN Isr_Irq(void); // COMMENT_ONLY
	VOID DpcFor_Irq(PVOID Arg1, PVOID Arg2); // COMMENT_ONLY
	virtual NTSTATUS CleanUp(KIrp I);				// COMMENT_ONLY
	virtual NTSTATUS Create(KIrp I);				// COMMENT_ONLY
	virtual NTSTATUS Close(KIrp I);					// COMMENT_ONLY
	virtual NTSTATUS DeviceControl(KIrp I);			// COMMENT_ONLY
	virtual NTSTATUS SystemControl(KIrp I);			// COMMENT_ONLY
	virtual NTSTATUS Read(KIrp I);					// COMMENT_ONLY
	virtual NTSTATUS Write(KIrp I);					// COMMENT_ONLY
#endif

	// Member Data
protected:
		// Unit number for this device (0-9)
	ULONG				m_Unit;
	KPnpLowerDevice		m_Lower;
	ISAINTDevice_DriverManagedQueue m_DriverManagedQueue;
// TODO:	Create additional driver managed queues.  These might be
//			of the same class (ISAINTDevice_DriverManagedQueue),
//			or you might choose to derive another class.
		// The following members correspond to hardware resources in the
		// device.
	KIoRange				m_ISAControlPort;
	KInterrupt			m_Irq;
	KDeferredCall		m_DpcFor_Irq;
};


#endif

⌨️ 快捷键说明

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