debugprint.h
来自「windows 驱动程序开发相关资料与代码 让你深刻知晓windows 开发的魅」· C头文件 代码 · 共 38 行
H
38 行
// 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 + =
减小字号Ctrl + -
显示快捷键?