reactos/dll/shellext/zipfldr/zippidl.hpp
Mark Jansen c7e6a9d04b
[ZIPFLDR] Initial implementation.
Icon by Jared Smudde
CORE-7684
2018-04-07 15:29:59 +02:00

34 lines
662 B
C++

/*
* PROJECT: ReactOS Zip Shell Extension
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
* PURPOSE: zip pidl handling
* COPYRIGHT: Copyright 2017 Mark Jansen (mark.jansen@reactos.org)
*/
enum ZipPidlType
{
ZIP_PIDL_DIRECTORY,
ZIP_PIDL_FILE
};
#include <pshpack1.h>
struct ZipPidlEntry
{
WORD cb;
BYTE MagicType;
ZipPidlType ZipType;
ULONG64 CompressedSize;
ULONG64 UncompressedSize;
ULONG DosDate;
BYTE Password;
char Name[1];
};
#include <poppack.h>
LPITEMIDLIST _ILCreate(ZipPidlType Type, LPCSTR lpString, unz_file_info64& info);
const ZipPidlEntry* _ZipFromIL(LPCITEMIDLIST pidl);