📄 mmdebug.h
字号:
#ifndef __MMDEBUG_H
#define __MMDEBUG_H
#define OSInitializeCriticalSection InitializeCriticalSection
#define OSDeleteCriticalSection DeleteCriticalSection
#define OSEnterCriticalSection EnterCriticalSection
#define OSLeaveCriticalSection LeaveCriticalSection
// Debug logging for Memory Manager only, but can be called
// from outside (i.e. main function) as long as manager.h
// is included.
#define MmDebugLevelFatal 0x1 // * imminent nonrecoverable system failure
#define MmDebugLevelError 0x2 // * serious error, though recoverable
#define MmDebugLevelWarning 0x4 // * warnings of unusual occurances
#define MmDebugLevelInfo 0x8 // * status and other information - normal though
// perhaps unusual events. System MUST remain
// responsive.
#define MmDebugLevelTrace 0x10 // * trace information - normal events
// system needs not ramain responsive
#define MmDebugLevelVerbose 0x20 // * verbose trace information
// system needs not remain responsive
#define MmDebugLevelMaximum 0x40
#define MmDebugLevelLog 0x80 // log to file
void Mmdprintf(int MmDebugLevel, char* szFormat, ...);
void MmCloseDebugLogfile();
void MmOpenDebugLogfile();
#define MmDebugLogfile(x) Mmdprintf x
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -