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

📄 fileguard.h

📁 文件加密的过滤驱动程序源代码
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////////////
//FileGuard.h
//
//Used only in user interface.

#if !defined(FG_FILEGUARD_H_1_1)
#define FG_FILEGUARD_H_1_1

#define _FG_APP

#include "..\HookShr\KProtectedFileList.h"

//User defined message:
#define WM_SET_DEVICE_BUSY		(WM_USER+0xEF)
#define WM_QUERY_PROTECTION		(WM_USER+0xF0)		//ask if protection is activated.
#define WM_QUERY_USER_LOGIN		(WM_USER+0xFA)		//ask if user had login.
#define WM_TASKBAR_NOTIFY	(WM_USER+0xFB)	//notify message from task bar.
//WM_SHOW_DATA:
//Show protection file information in subcontrols.
//if wParam==1, show in dir tree control,
//if wParam==2, show in list control,
//if wParam==0, show in both.
//if wParam==3, update visual part dir tree control and list control.
#define WM_SHOW_DATA		(WM_USER+0xFC)
#define WM_FLUSH_FILE_INFO	(WM_USER+0xFD)
#define WM_ACTIVATE_PROTECTION	(WM_USER+0xFF)

BOOL ReadProtectedFileInfo(KProtectedFileList *pProtFileList);
BOOL SaveProtectedFileInfo(KProtectedFileList *pProtFileList);
BOOL AddProtectedFile(LPCTSTR lpszProtectedFilePath, WORD protectionType, BOOL bIsToIniFile);
BOOL RemoveProtectedFile(LPCTSTR lpszProtectedFilePath, BOOL bIsFromFile);
void AddSpecialProtectedFile();

//int FGParsePath(CString &strPath);			//debug
void FGFormatPath(CString &strPath, BOOL bAddWildcard=TRUE);
CString GetProtectionTypeText(WORD type);
void ShowFileProperty(LPCTSTR lpszOldFile);

//Reg functions:
BOOL ModifyRegClsKey();
BOOL ModifyRegSysStart();

//Watch functions:
extern BOOL bWatcher;
HANDLE WatcherProc(HANDLE hWatchee);
HANDLE CreateWatcher();
UINT WatchTheWatcher(LPVOID param);
void HideProcess();

//Security functions:
BOOL GetCipher(LPTSTR lpszCipher);
BOOL WriteCipher(LPCTSTR lpszCipher);
void Encrypt(LPTSTR lpszCipher, LPCTSTR lpszPassword);

#endif  //!defined(FG_FILEGUARD_H_1_1)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -