⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dirwatcher.h

📁 图象处理
💻 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 + -