?? dirwatcher.h
字號:
// DirWatcher.h: interface for the DirWatcher class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DIRWATCHER_H__05D1AFD4_F362_4740_AB89_A181B9DF882B__INCLUDED_)
#define AFX_DIRWATCHER_H__05D1AFD4_F362_4740_AB89_A181B9DF882B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <windows.h>
#include <TCHAR.h>
#define MAX_BUFFER 4096
// this is the all purpose structure that contains
// the interesting directory information and provides
// the input buffer that is filled with file change data
typedef struct _DIRECTORY_INFO {
HANDLE hDir;
WCHAR lpszDirName[MAX_PATH];
CHAR lpBuffer[MAX_BUFFER];
DWORD dwBufLength;
OVERLAPPED Overlapped;
}DIRECTORY_INFO, *PDIRECTORY_INFO, *LPDIRECTORY_INFO;
class DirWatcher
{
public:
DirWatcher(LPCWSTR);
virtual ~DirWatcher();
void WINAPI WatchDirectories();
static DIRECTORY_INFO DirInfo; // Buffer for all of the directories
static WCHAR WatchDir[];
private:
HANDLE hCompPort; // Handle To a Completion Port
HANDLE hThread;
};
#endif // !defined(AFX_DIRWATCHER_H__05D1AFD4_F362_4740_AB89_A181B9DF882B__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -