?? directorywatcher.h
字號:
/*
2007-11-16: charlie
TCONSOLE output the message to console;
NEXT:
1 TLOGLEVEL write text log file of changesw
USEAGE:
see DirectoryWater.cpp
*/
//my debug mode
#define TDEBUG
//cout & cin for test mode
#define TCONSOLE
//for my log level, 9 is everything, 0 is nothing
#define TLOGLEVEL 1
#ifndef _DIRWATCHER
#define _DIRWATCHER
#endif
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <iostream>
using namespace std;
class CDirectoryWatcher
{
private:
string strWatchedDir;
HANDLE hThread;
HANDLE hDir;
static DWORD WINAPI ThreadProc( LPVOID lParam );
public:
bool Start(string path);
inline bool Start();
inline void Stop();
inline bool Status();
inline void Set(string path);
string Get();
/*
bool Log();
bool LogStart();
bool LogStart(int level);
bool Logstop();
*/
CDirectoryWatcher();
~CDirectoryWatcher();
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -