?? filecipheragent.h
字號:
// FileCipherAgent.h: interface for the CFileCipherAgent class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FILECIPHERAGENT_H__306489E0_A953_4152_99E7_1128AADCEFA7__INCLUDED_)
#define AFX_FILECIPHERAGENT_H__306489E0_A953_4152_99E7_1128AADCEFA7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BaseThread.h"
class CFileCipherAgent:public CBaseThread
{
public:
void Close();
void DenFile();
void EnFile();
void PrepareFile(char *strInFile,char *strOutFile);
void SetFormat(pCipherOptionsFormat pformat=&g_zOptions);
void Reset();
CFileCipherAgent();
virtual ~CFileCipherAgent();
private:
FILE *fpIn,*fpOut;
DWORD m_dwBlockCount,m_dwFileLen,m_dwCurPos,m_dwCurBlockIndex;
pCipherOptionsFormat m_pformat;
int m_nStartPos,m_nProcBlockLen,m_nProcBlockStep;
DWORD m_dwStartClick,m_dwPreUpClick;
char m_zbuffer[8*BLOCK_EACH_SIZE];
bool m_bIsClosed;
private:
void DecipherBlock(int nret);
DWORD DaemonThread();
void CipherBlock(int );
int WriteBlock(int nlen=BLOCK_EACH_SIZE);
int ReadBlock(int nlen=BLOCK_EACH_SIZE);
};
#endif // !defined(AFX_FILECIPHERAGENT_H__306489E0_A953_4152_99E7_1128AADCEFA7__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -