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

📄 cfileimpwin32.h

📁 PGP8.0源码 请认真阅读您的文件包然后写出其具体功能
💻 H
字号:
/*____________________________________________________________________________
		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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -