[HEADERS] Move some helpers from undocshell.h to shellutils.h as they didn't cover...
[reactos.git] / dll / shellext / zipfldr / precomp.h
1 #ifndef ZIPFLDR_PRECOMP_H
2 #define ZIPFLDR_PRECOMP_H
3
4 #define COBJMACROS
5 #define COM_NO_WINDOWS_H
6 #define NTOS_MODE_USER
7
8 #include <windef.h>
9 #include <winbase.h>
10 #include <shlobj.h>
11 #include <atlbase.h>
12 #include <atlcom.h>
13 #include <atlcoll.h>
14 #include <atlstr.h>
15 #include <rosdlgs.h>
16 #include <shlwapi.h>
17 #include <shellapi.h>
18 #include <strsafe.h>
19 // debug.h needs this:
20 #define NTSTATUS LONG
21 #include <reactos/debug.h>
22 #include <shellutils.h>
23
24
25
26 #define EXTRACT_VERBA "extract"
27 #define EXTRACT_VERBW L"extract"
28
29 EXTERN_C const GUID CLSID_ZipFolderStorageHandler;
30 EXTERN_C const GUID CLSID_ZipFolderSendTo;
31 EXTERN_C const GUID CLSID_ZipFolderContextMenu;
32 EXTERN_C const GUID CLSID_ZipFolderRightDragHandler;
33 EXTERN_C const GUID CLSID_ZipFolderDropHandler;
34
35 EXTERN_C const GUID CLSID_ZipFolderExtractAllCommand;
36
37 extern LONG g_ModuleRefCnt;
38
39
40 WCHAR* guid2string(REFCLSID iid);
41
42
43 #define MINIZIP_PASSWORD_FLAG 1
44
45 #include "minizip/unzip.h"
46 #include "minizip/ioapi.h"
47
48 extern zlib_filefunc64_def g_FFunc;
49
50 #include "resource.h"
51
52 #include "zippidl.hpp"
53 #include "IZip.hpp"
54
55 HRESULT _CEnumZipContents_CreateInstance(IZip* zip, DWORD flags, const char* prefix, REFIID riid, LPVOID * ppvOut);
56 HRESULT _CExplorerCommandProvider_CreateInstance(IContextMenu* zipObject, REFIID riid, LPVOID * ppvOut);
57 HRESULT _CFolderViewCB_CreateInstance(REFIID riid, LPVOID * ppvOut);
58 void _CZipExtract_runWizard(PCWSTR Filename);
59
60 enum eZipPasswordResponse
61 {
62 eAbort,
63 eSkip,
64 eAccept,
65 };
66
67 eZipPasswordResponse _CZipAskPassword(HWND hDlg, const char* filename, CStringA& Password);
68
69 enum eZipConfirmResponse
70 {
71 eYes,
72 eYesToAll,
73 eNo,
74 eCancel
75 };
76
77 eZipConfirmResponse _CZipAskReplace(HWND hDlg, const char* FullPath);
78
79 #include "CZipEnumerator.hpp"
80 #include "CZipFolder.hpp"
81
82 #endif /* ZIPFLDR_PRECOMP_H */