📄 pciwdmdevice.h
字号:
// PciwdmDevice.h
//
// Generated by DriverWizard version DriverStudio 2.0.1 (Build 36)
// Requires Compuware's DriverWorks classes
//
#ifndef __PciwdmDevice_h__
#define __PciwdmDevice_h__
class PciwdmDevice : public KPnpDevice
{
// Constructors
public:
SAFE_DESTRUCTORS;
PciwdmDevice(PDEVICE_OBJECT Pdo, ULONG Unit);
~PciwdmDevice();
// Member Functions
public:
DEVMEMBER_DISPATCHERS
// The ISR (interrupt service routine)
MEMBER_ISR(PciwdmDevice, Isr_Irq);
// The DPC (deferred procedure call) for the ISR
MEMBER_DPC(PciwdmDevice, 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);
NTSTATUS EVENT_REGISTER_Handler(KIrp I);
NTSTATUS READ_DATA_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 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
#endif
// Member Data
protected:
// Unit number for this device (0-9)
ULONG m_Unit;
KPnpLowerDevice m_Lower;
// The following members correspond to hardware resources in the
// device.
KIoRange m_IoPortRange0;
KDmaAdapter m_DmaAdapter;
KInterrupt m_Irq;
KDeferredCall m_DpcFor_Irq;
KCommonDmaBuffer m_DmaBuffer; //添加语句
ULONG m_PAddr; // physical address to send to DMA controller
PVOID m_LAddr; // linear address of the DMA buffer
KEvent* m_pEventToSignal;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -