cfileimpwin32.h

来自「可以实现对邮件的加密解密以及签名」· C头文件 代码 · 共 51 行

H
51
字号
/*____________________________________________________________________________
		Copyright (C) 2002 PGP Corporation
        All rights reserved.

        $Id: CFileImpWin32.h,v 1.6 2002/11/21 18:42:55 wjb Exp $
____________________________________________________________________________*/

#ifndef Included_CFileImpWin32_h	// [
#define Included_CFileImpWin32_h

#include "pgpClassesConfig.h"
#include "CFileImp.h"

_PGP_BEGIN

// Class CFileImpWin32

class CFileImpWin32 : public CFileImp
{
	friend class CPFLImpFactoryWin32;

private:
	CFileImpWin32() : mFileHandle(INVALID_HANDLE_VALUE) { }
	~CFileImpWin32();

	PGPUInt64	GetLength() const;
	PGPUInt64	GetUniqueFileId() const;

	void	SetIsCompressed(PGPBoolean isCompressed);
	void	SetLength(PGPUInt64 length);

	void	Flush();

	void	Open(const char *path, PGPUInt32 flags);
	void	Close();
	void	Delete(const char *path);
	void	Move(const char *oldPath, const char *newPath);

	void	Read(void *buf, PGPUInt64 pos, PGPUInt32 nBytes) const;
	void	Write(const void *buf, PGPUInt64 pos, PGPUInt32 nBytes) ;//const;

private:
	HANDLE	mFileHandle;

	void	EzSetFilePointer(PGPUInt64 bytes) const;
};

_PGP_END

#endif	// ] Included_CFileImpWin32_h

⌨️ 快捷键说明

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