ReactOS  0.4.14-dev-114-gc8cbd56
precomp.h File Reference
#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>
#include <reactos/debug.h>
#include <shellutils.h>
#include "minizip/unzip.h"
#include "minizip/ioapi.h"
#include "resource.h"
#include "zippidl.hpp"
#include "IZip.hpp"
#include "CZipEnumerator.hpp"
#include "CZipFolder.hpp"
Include dependency graph for precomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COBJMACROS
 
#define COM_NO_WINDOWS_H
 
#define NTOS_MODE_USER
 
#define NTSTATUS   LONG
 
#define EXTRACT_VERBA   "extract"
 
#define EXTRACT_VERBW   L"extract"
 
#define MINIZIP_PASSWORD_FLAG   1
 

Enumerations

enum  eZipPasswordResponse { eAbort, eSkip, eAccept }
 
enum  eZipConfirmResponse { eYes, eYesToAll, eNo, eCancel }
 

Functions

WCHARguid2string (REFCLSID iid)
 
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)
 
eZipPasswordResponse _CZipAskPassword (HWND hDlg, const char *filename, CStringA &Password)
 
eZipConfirmResponse _CZipAskReplace (HWND hDlg, const char *FullPath)
 

Variables

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
 
LONG g_ModuleRefCnt
 
zlib_filefunc64_def g_FFunc
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 4 of file precomp.h.

◆ COM_NO_WINDOWS_H

#define COM_NO_WINDOWS_H

Definition at line 5 of file precomp.h.

◆ EXTRACT_VERBA

#define EXTRACT_VERBA   "extract"

Definition at line 26 of file precomp.h.

◆ EXTRACT_VERBW

#define EXTRACT_VERBW   L"extract"

Definition at line 27 of file precomp.h.

◆ MINIZIP_PASSWORD_FLAG

#define MINIZIP_PASSWORD_FLAG   1

Definition at line 43 of file precomp.h.

◆ NTOS_MODE_USER

#define NTOS_MODE_USER

Definition at line 6 of file precomp.h.

◆ NTSTATUS

Definition at line 20 of file precomp.h.

Enumeration Type Documentation

◆ eZipConfirmResponse

Enumerator
eYes 
eYesToAll 
eNo 
eCancel 

Definition at line 69 of file precomp.h.

70 {
71  eYes,
72  eYesToAll,
73  eNo,
74  eCancel
75 };
Definition: precomp.h:71
Definition: precomp.h:73

◆ eZipPasswordResponse

Enumerator
eAbort 
eSkip 
eAccept 

Definition at line 60 of file precomp.h.

61 {
62  eAbort,
63  eSkip,
64  eAccept,
65 };
Definition: precomp.h:63
Definition: precomp.h:62

Function Documentation

◆ _CEnumZipContents_CreateInstance()

HRESULT _CEnumZipContents_CreateInstance ( IZip zip,
DWORD  flags,
const char prefix,
REFIID  riid,
LPVOID ppvOut 
)

Definition at line 91 of file CEnumZipContents.cpp.

92 {
93  return ShellObjectCreatorInit<CEnumZipContents>(zip, flags, prefix, riid, ppvOut);
94 }
REFIID riid
Definition: precomp.h:44
GLbitfield flags
Definition: glext.h:7161

Referenced by CZipFolder::EnumObjects().

◆ _CExplorerCommandProvider_CreateInstance()

HRESULT _CExplorerCommandProvider_CreateInstance ( IContextMenu zipObject,
REFIID  riid,
LPVOID ppvOut 
)

Definition at line 186 of file CExplorerCommand.cpp.

187 {
188  return ShellObjectCreatorInit<CExplorerCommandProvider>(zipObject, riid, ppvOut);
189 }
REFIID riid
Definition: precomp.h:44

Referenced by CZipFolder::CreateViewObject().

◆ _CFolderViewCB_CreateInstance()

HRESULT _CFolderViewCB_CreateInstance ( REFIID  riid,
LPVOID ppvOut 
)

Definition at line 51 of file CFolderViewCB.cpp.

52 {
53  return ShellObjectCreator<CFolderViewCB>(riid, ppvOut);
54 }
REFIID riid
Definition: precomp.h:44

Referenced by CZipFolder::CreateViewObject().

◆ _CZipAskPassword()

eZipPasswordResponse _CZipAskPassword ( HWND  hDlg,
const char filename,
CStringA Password 
)

Definition at line 78 of file CZipPassword.cpp.

79 {
80  if (filename)
83  INT_PTR Result = password.DoModal(hDlg);
84  switch (Result)
85  {
86  case IDOK: return eAccept;
87  case IDSKIP: return eSkip;
88  default:
89  case IDCANCEL: return eAbort;
90  }
91 }
#define IDOK
Definition: winuser.h:824
int32_t INT_PTR
Definition: typedefs.h:62
const char * filename
Definition: ioapi.h:135
Definition: precomp.h:63
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
T1_FIELD_DICT_PRIVATE password
Definition: t1tokens.h:64
#define IDSKIP
Definition: resource.h:25
Definition: precomp.h:62
LPSTR WINAPI PathFindFileNameA(LPCSTR lpszPath)
Definition: path.c:368
#define IDCANCEL
Definition: winuser.h:825

Referenced by CZipExtract::Extract(), and CZipExtract::CExtractSettingsPage::OnPassword().

◆ _CZipAskReplace()

eZipConfirmResponse _CZipAskReplace ( HWND  hDlg,
const char FullPath 
)

◆ _CZipExtract_runWizard()

void _CZipExtract_runWizard ( PCWSTR  Filename)

Definition at line 481 of file CZipExtract.cpp.

482 {
483  CZipExtract extractor(Filename);
484  extractor.runWizard();
485 }
IN PVCB IN PBCB OUT PDIRENT IN USHORT IN POEM_STRING Filename
Definition: fatprocs.h:925

Referenced by CZipFolder::s_ExtractProc().

◆ guid2string()

WCHAR* guid2string ( REFCLSID  iid)

Definition at line 21 of file Debug.cpp.

22 {
23  static WCHAR buf[2][300];
24  static int idx = 0;
25 
26  idx ^= 1;
27 
28  LPOLESTR tmp;
29  HRESULT hr = ProgIDFromCLSID(iid, &tmp);
30  if (SUCCEEDED(hr))
31  {
32  wcscpy(buf[idx], tmp);
33  CoTaskMemFree(tmp);
34  return buf[idx];
35  }
38  {
39  return buf[idx];
40  }
42 
43  return buf[idx];
44 }
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:422
HRESULT hr
Definition: shlfolder.c:183
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define _countof(array)
Definition: fontsub.cpp:30
static LPOLESTR
Definition: stg_prop.c:27
HRESULT WINAPI DECLSPEC_HOTPATCH ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *ppszProgID)
Definition: compobj.c:2439
unsigned int idx
Definition: utils.c:41
static bool GetInterfaceName(const WCHAR *InterfaceString, WCHAR *buf, size_t size)
Definition: Debug.cpp:10
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
INT WINAPI StringFromGUID2(REFGUID id, LPOLESTR str, INT cmax)
Definition: compobj.c:2343
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by CZipFolder::BindToObject(), CZipFolder::CreateViewObject(), and CZipFolder::GetUIObjectOf().

Variable Documentation

◆ CLSID_ZipFolderContextMenu

EXTERN_C const GUID CLSID_ZipFolderContextMenu

Definition at line 31 of file precomp.h.

◆ CLSID_ZipFolderDropHandler

EXTERN_C const GUID CLSID_ZipFolderDropHandler

Definition at line 33 of file precomp.h.

◆ CLSID_ZipFolderExtractAllCommand

EXTERN_C const GUID CLSID_ZipFolderExtractAllCommand

Definition at line 35 of file precomp.h.

Referenced by CExplorerCommand::GetCanonicalName().

◆ CLSID_ZipFolderRightDragHandler

EXTERN_C const GUID CLSID_ZipFolderRightDragHandler

Definition at line 32 of file precomp.h.

◆ CLSID_ZipFolderSendTo

EXTERN_C const GUID CLSID_ZipFolderSendTo

Definition at line 30 of file precomp.h.

◆ CLSID_ZipFolderStorageHandler

EXTERN_C const GUID CLSID_ZipFolderStorageHandler

Definition at line 29 of file precomp.h.

◆ g_FFunc

Definition at line 42 of file zipfldr.cpp.

Referenced by CZipExtract::Extract(), init_zlib(), and CZipFolder::STDMETHODIMP_().

◆ g_ModuleRefCnt