📄 pcicarddevice.h
字号:
// PcicardDevice.h
//
// Generated by DriverWizard version DriverStudio 2.7.0 (Build 562)
// Requires Compuware's DriverWorks classes
//
#ifndef __PcicardDevice_h__
#define __PcicardDevice_h__
class PcicardDevice : public KPnpDevice
{
// Constructors
public:
SAFE_DESTRUCTORS;
PcicardDevice(PDEVICE_OBJECT Pdo, ULONG Unit);
~PcicardDevice();
// Member Functions
public:
DEVMEMBER_DISPATCHERS
// The ISR (interrupt service routine)
// The DPC (deferred procedure call) for the ISR
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 PCICARD_IOCTL_EVENT_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
BOOLEAN ReadDataFromDevice(PVOID pIrp);
BOOLEAN TestAndClearNotifyApp(PVOID p);
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:
BOOLEAN m_bNotifyApp;
KEvent* m_pEvent;
// Unit number for this device (0-9)
ULONG m_Unit;
KPnpLowerDevice m_Lower;
// The following members correspond to hardware resources in the
// device.
KMemoryRange m_MemoryRange;
KIoRange m_IoPortRange;
KInterrupt m_Irq;
KDeferredCall m_DpcFor_Irq;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -