ZipCompatibility.h
Go to the documentation of this file.
1 
2 // This source file is part of the ZipArchive Library Open Source distribution
3 // and is Copyrighted 2000 - 2022 by Artpol Software - Tadeusz Dracz
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // For the licensing details refer to the License.txt file.
11 //
12 // Web Site: https://www.artpol-software.com
14 
15 
22 #if !defined(ZIPARCHIVE_ZIPCOMPATIBILITY_DOT_H)
23 #define ZIPARCHIVE_ZIPCOMPATIBILITY_DOT_H
24 
25 #if _MSC_VER > 1000
26 #pragma once
27 #endif
28 
29 class CZipAutoBuffer;
30 class CZipFileHeader;
31 
32 #include "ZipString.h"
33 #include "ZipPlatform.h"
38 namespace ZipCompatibility
39 {
51  {
74  };
75 
80  {
81  attROnly = 0x01,
82  attHidd = 0x02,
83  attSys = 0x04,
84  attDir = 0x10,
85  attArch = 0x20
86  };
87 
88  ZIP_API DWORD GetAsInternalAttributes(DWORD uAttr, int iFromSystem);
89 
99  ZIP_API bool IsPlatformSupported(int iCode);
100 
120  ZIP_API DWORD ConvertToSystem(DWORD uAttr, int iFromSystem, int iToSystem);
121 
134  ZIP_API void ConvertBufferToString(CZipString& szString, const CZipAutoBuffer& buffer, UINT uCodePage);
135 
148  ZIP_API void ConvertStringToBuffer(LPCTSTR lpszString, CZipAutoBuffer& buffer, UINT uCodePage);
149 
159  ZIP_API void SlashBackslashChg(CZipString& szFileName, bool bReplaceSlash);
160 
167  ZIP_API void NormalizePathSeparators(CZipString& szFileName);
168 
178  ZIP_API UINT GetDefaultNameCodePage(int iPlatform);
179 
180 
187  ZIP_API UINT GetDefaultNameCodePage();
188 
198  ZIP_API UINT GetDefaultCommentCodePage(int iPlatform);
199 
209  ZIP_API UINT GetDefaultPasswordCodePage(int iPlatform);
210 
217  ZIP_API UINT GetDefaultCommentCodePage();
218 };
219 
220 #endif // !defined(ZIPARCHIVE_ZIPCOMPATIBILITY_DOT_H)

The ZipArchive Library Copyright © 2000 - 2022 Artpol Software - Tadeusz Dracz. Generated at Sat Dec 17 2022 19:57:03.