ReactOS  0.4.15-dev-2528-g5506091
CZipCreator Class Reference

#include <CZipCreator.hpp>

Collaboration diagram for CZipCreator:

Public Member Functions

virtual ~CZipCreator ()
 
virtual void DoAddItem (LPCWSTR pszFile)
 

Static Public Member Functions

static CZipCreatorDoCreate ()
 
static BOOL runThread (CZipCreator *pCreator)
 

Public Attributes

struct CZipCreatorImplm_pimpl
 

Protected Member Functions

 CZipCreator ()
 

Detailed Description

Definition at line 13 of file CZipCreator.hpp.

Constructor & Destructor Documentation

◆ ~CZipCreator()

CZipCreator::~CZipCreator ( )
virtual

Definition at line 176 of file CZipCreator.cpp.

177 {
179  delete m_pimpl;
180 }
struct CZipCreatorImpl * m_pimpl
Definition: CZipCreator.hpp:16
LONG g_ModuleRefCnt
Definition: ACPPage.cpp:13
#define InterlockedDecrement
Definition: armddk.h:52

◆ CZipCreator()

CZipCreator::CZipCreator ( )
protected

Definition at line 171 of file CZipCreator.cpp.

171  : m_pimpl(new CZipCreatorImpl)
172 {
174 }
struct CZipCreatorImpl * m_pimpl
Definition: CZipCreator.hpp:16
LONG g_ModuleRefCnt
Definition: ACPPage.cpp:13
#define InterlockedIncrement
Definition: armddk.h:53

Referenced by DoCreate().

Member Function Documentation

◆ DoAddItem()

void CZipCreator::DoAddItem ( LPCWSTR  pszFile)
virtual

Definition at line 211 of file CZipCreator.cpp.

212 {
213  // canonicalize path
216 
217  m_pimpl->m_items.Add(szPath);
218 }
struct CZipCreatorImpl * m_pimpl
Definition: CZipCreator.hpp:16
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
Definition: path.c:1105
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define _countof(array)
Definition: sndvol32.h:68
#define MAX_PATH
Definition: compat.h:34
LPCWSTR szPath
Definition: env.c:37
#define NULL
Definition: types.h:112

Referenced by CSendToZip::Drop().

◆ DoCreate()

static CZipCreator* CZipCreator::DoCreate ( )
inlinestatic

Definition at line 20 of file CZipCreator.hpp.

21  {
22  return new CZipCreator();
23  }

Referenced by CSendToZip::Drop().

◆ runThread()

BOOL CZipCreator::runThread ( CZipCreator pCreator)
static

Definition at line 189 of file CZipCreator.cpp.

190 {
191  unsigned tid = 0;
192  HANDLE hThread = reinterpret_cast<HANDLE>(
193  _beginthreadex(NULL, 0, create_zip_function, pCreator, 0, &tid));
194 
195  if (hThread)
196  {
198  return TRUE;
199  }
200 
201  DPRINT1("hThread == NULL\n");
202 
205  MessageBoxW(NULL, strText, strTitle, MB_ICONERROR);
206 
207  delete pCreator;
208  return FALSE;
209 }
#define CloseHandle
Definition: compat.h:598
#define TRUE
Definition: types.h:120
_CRTIMP uintptr_t __cdecl _beginthreadex(_In_opt_ void *_Security, _In_ unsigned _StackSize, _In_ unsigned(__stdcall *_StartAddress)(void *), _In_opt_ void *_ArgList, _In_ unsigned _InitFlag, _Out_opt_ unsigned *_ThrdAddr)
#define IDS_ERRORTITLE
Definition: resource.h:44
#define FALSE
Definition: types.h:117
#define IDS_CANTSTARTTHREAD
Definition: resource.h:45
static unsigned __stdcall create_zip_function(void *arg)
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
#define MB_ICONERROR
Definition: winuser.h:781
#define NULL
Definition: types.h:112
HANDLE hThread
Definition: wizard.c:28
#define DPRINT1
Definition: precomp.h:8
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
static TfClientId tid

Referenced by CSendToZip::Drop().

Member Data Documentation

◆ m_pimpl

struct CZipCreatorImpl* CZipCreator::m_pimpl

Definition at line 16 of file CZipCreator.hpp.

Referenced by create_zip_function(), DoAddItem(), and ~CZipCreator().


The documentation for this class was generated from the following files: