Main Page
Related Pages
Namespaces
Classes
Files
File List
C:
Users
tdrac
AppData
Local
Temp
ZipArchive-Deploy
7cf2e453-55d1-4019-9f4f-0538167be5a7
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
{
50
enum
ZipPlatforms
51
{
52
zcDosFat
,
53
zcAmiga
,
54
zcVaxVms
,
55
zcUnix
,
56
zcVmCms
,
57
zcAtari
,
58
zcOs2Hpfs
,
59
zcMacintosh
,
60
zcZsystem
,
61
zcCpm
,
62
zcTops20
,
63
zcNtfs
,
64
zcQDos
,
65
zcAcorn
,
66
ZcMvs
,
67
zcVfat
,
68
zcAtheOS
,
69
zcBeOS
,
70
zcTandem
,
71
zcTheos
,
72
zcMacDarwin
,
73
zcLast
74
};
75
79
enum
InternalFileAttributes
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.