debugprint.h

来自「Windows 2000/XP WDM設備驅動程式開發 使用 Numega 公」· C头文件 代码 · 共 38 行

H
38
字号
// DebugPrint.h: interface for the DebugPrint class.
//
//////////////////////////////////////////////////////////////////////

typedef struct _DEBUGPRINT_EVENT
{
    LIST_ENTRY m_ListEntry;
	ULONG Len;
	PUCHAR EventData;
} DEBUGPRINT_EVENT, *PDEBUGPRINT_EVENT;

class DPTestThread : public KSystemThread
{
	SAFE_DESTRUCTORS
public:
	DPTestThread(void);

	KSemaphore m_Mailbox;
};

class DebugPrint  
{
public:
	DebugPrint(char *str);
	virtual ~DebugPrint();
public:
	void DPrint(char *str);
	MEMBER_THREAD	(DebugPrint, Stage1)

	bool			KeepRunning;
	DPTestThread	m_Stage1;
	char			DriverName[255];
	USHORT			DriverNameLen;
	KInterlockedList<DEBUGPRINT_EVENT>	m_List;
};

#define MAX_MSG 1000000

⌨️ 快捷键说明

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