reactos/dll/shellext/zipfldr/zippidl.hpp
Katayama Hirofumi MZ bf2cec186c
[ZIPFLDR] Support UTF-8 Zip extraction (#5411)
- Extend some Ansi strings to Wide strings.
- Check the UTF-8 flag (1 << 11). If UTF-8, then use CP_UTF8.
- s/LPCWSTR/PCWSTR/.
- s/LPWSTR/PWSTR/.
CORE-16668
2023-07-17 20:12:45 +09:00

34 lines
807 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)
* Copyright 2023 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
*/
enum ZipPidlType
{
ZIP_PIDL_DIRECTORY,
ZIP_PIDL_FILE
};
#include <pshpack1.h>
struct ZipPidlEntry
{
WORD cb; // This must be a WORD to keep compatibility to SHITEMID
BYTE MagicType;
BOOLEAN Password;
ZipPidlType ZipType;
ULONG64 CompressedSize;
ULONG64 UncompressedSize;
ULONG DosDate;
WCHAR Name[1];
};
#include <poppack.h>
LPITEMIDLIST _ILCreate(ZipPidlType Type, PCWSTR lpString, unz_file_info64& info);
const ZipPidlEntry* _ZipFromIL(LPCITEMIDLIST pidl);