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

📄 debugprint.h

📁 windows下的程序多线程对文件驱动的读写
💻 H
字号:
// DebugPrint.h: interface for the DebugPrint class.
//
//////////////////////////////////////////////////////////////////////

typedef struct _DEBUGPRINT_EVENT
{	//定义调试输出信息
    LIST_ENTRY m_ListEntry;	//队列
	ULONG Len;				//EventData的字节长度
	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -