[ZIPFLDR] Allow the shell extension to extract passworded zip files
[reactos.git] / dll / shellext / zipfldr / zippidl.hpp
1 /*
2 * PROJECT: ReactOS Zip Shell Extension
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: zip pidl handling
5 * COPYRIGHT: Copyright 2017 Mark Jansen (mark.jansen@reactos.org)
6 */
7
8
9 enum ZipPidlType
10 {
11 ZIP_PIDL_DIRECTORY,
12 ZIP_PIDL_FILE
13 };
14
15 #include <pshpack1.h>
16 struct ZipPidlEntry
17 {
18 WORD cb;
19 BYTE MagicType;
20 ZipPidlType ZipType;
21
22 ULONG64 CompressedSize;
23 ULONG64 UncompressedSize;
24 ULONG DosDate;
25 BYTE Password;
26
27 char Name[1];
28 };
29 #include <poppack.h>
30
31
32 LPITEMIDLIST _ILCreate(ZipPidlType Type, LPCSTR lpString, unz_file_info64& info);
33 const ZipPidlEntry* _ZipFromIL(LPCITEMIDLIST pidl);
34