logtrace.h
来自「一个内核开发的usb加密解密驱动」· C头文件 代码 · 共 48 行
H
48 行
#pragma once
#include "stdafx.h"
// This class is exported from the LogTrace.dll
class CLogTrace {
public:
CLogTrace(void);
// TODO: add your methods here.
~CLogTrace(void);
//Log Simple Text
BOOL LOG_DBG(LPCTSTR log);
//Log Text with a specific String
BOOL LOG_DBG(LPCTSTR log, LPCTSTR str);
//Log text with error code
BOOL LOG_ERR(LPCTSTR log, DWORD errCode);
//Format input string to write
BOOL Format(LPCTSTR log, LPCTSTR str);
//Format with error code
BOOL Format(LPCTSTR log, DWORD errCode);
//Set File Name
BOOL SetFileName(LPCTSTR fName);
//Initialize Logging
BOOL Init();
//WriteLog
BOOL WriteLog();
//GetDate Time
BOOL GetDateTime(LPTSTR lpDateTime);
private:
LPTSTR Log;
LPTSTR fName;
FILE *logFP;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?