2017-12-29 22:45:02 +00:00
|
|
|
#ifndef ZIPFLDR_PRECOMP_H
|
|
|
|
#define ZIPFLDR_PRECOMP_H
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#define NTOS_MODE_USER
|
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <shlobj.h>
|
|
|
|
#include <atlbase.h>
|
|
|
|
#include <atlcom.h>
|
|
|
|
#include <atlcoll.h>
|
|
|
|
#include <atlstr.h>
|
|
|
|
#include <rosdlgs.h>
|
|
|
|
#include <shlwapi.h>
|
|
|
|
#include <shellapi.h>
|
|
|
|
#include <strsafe.h>
|
|
|
|
// debug.h needs this:
|
|
|
|
#define NTSTATUS LONG
|
|
|
|
#include <reactos/debug.h>
|
|
|
|
#include <shellutils.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define EXTRACT_VERBA "extract"
|
|
|
|
#define EXTRACT_VERBW L"extract"
|
|
|
|
|
|
|
|
EXTERN_C const GUID CLSID_ZipFolderStorageHandler;
|
|
|
|
EXTERN_C const GUID CLSID_ZipFolderSendTo;
|
|
|
|
EXTERN_C const GUID CLSID_ZipFolderContextMenu;
|
|
|
|
EXTERN_C const GUID CLSID_ZipFolderRightDragHandler;
|
|
|
|
EXTERN_C const GUID CLSID_ZipFolderDropHandler;
|
|
|
|
|
|
|
|
EXTERN_C const GUID CLSID_ZipFolderExtractAllCommand;
|
|
|
|
|
|
|
|
extern LONG g_ModuleRefCnt;
|
|
|
|
|
|
|
|
|
|
|
|
WCHAR* guid2string(REFCLSID iid);
|
|
|
|
|
|
|
|
|
2019-02-27 21:18:52 +00:00
|
|
|
#define MINIZIP_PASSWORD_FLAG 1
|
|
|
|
|
2017-12-29 22:45:02 +00:00
|
|
|
#include "minizip/unzip.h"
|
|
|
|
#include "minizip/ioapi.h"
|
|
|
|
|
|
|
|
extern zlib_filefunc64_def g_FFunc;
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
#include "zippidl.hpp"
|
|
|
|
#include "IZip.hpp"
|
|
|
|
|
|
|
|
HRESULT _CEnumZipContents_CreateInstance(IZip* zip, DWORD flags, const char* prefix, REFIID riid, LPVOID * ppvOut);
|
|
|
|
HRESULT _CExplorerCommandProvider_CreateInstance(IContextMenu* zipObject, REFIID riid, LPVOID * ppvOut);
|
|
|
|
HRESULT _CFolderViewCB_CreateInstance(REFIID riid, LPVOID * ppvOut);
|
|
|
|
void _CZipExtract_runWizard(PCWSTR Filename);
|
|
|
|
|
2019-02-27 21:18:52 +00:00
|
|
|
enum eZipPasswordResponse
|
|
|
|
{
|
|
|
|
eAbort,
|
|
|
|
eSkip,
|
|
|
|
eAccept,
|
|
|
|
};
|
|
|
|
|
|
|
|
eZipPasswordResponse _CZipAskPassword(HWND hDlg, const char* filename, CStringA& Password);
|
|
|
|
|
|
|
|
enum eZipConfirmResponse
|
|
|
|
{
|
|
|
|
eYes,
|
|
|
|
eYesToAll,
|
|
|
|
eNo,
|
|
|
|
eCancel
|
|
|
|
};
|
|
|
|
|
|
|
|
eZipConfirmResponse _CZipAskReplace(HWND hDlg, const char* FullPath);
|
|
|
|
|
2017-12-29 22:45:02 +00:00
|
|
|
#include "CZipEnumerator.hpp"
|
|
|
|
#include "CZipFolder.hpp"
|
2019-12-01 17:26:34 +00:00
|
|
|
#include "CZipCreator.hpp"
|
2019-12-01 12:20:53 +00:00
|
|
|
#include "CSendToZip.hpp"
|
2017-12-29 22:45:02 +00:00
|
|
|
|
|
|
|
#endif /* ZIPFLDR_PRECOMP_H */
|