ReactOS 0.4.15-dev-7918-g2a2556c
CZipCreator Class Reference

#include <CZipCreator.hpp>

Collaboration diagram for CZipCreator:

Public Member Functions

virtual ~CZipCreator ()
 
virtual void DoAddItem (PCWSTR 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 169 of file CZipCreator.cpp.

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

◆ CZipCreator()

CZipCreator::CZipCreator ( )
protected

Definition at line 164 of file CZipCreator.cpp.

165{
167}
#define InterlockedIncrement
Definition: armddk.h:53

Referenced by DoCreate().

Member Function Documentation

◆ DoAddItem()

void CZipCreator::DoAddItem ( PCWSTR  pszFile)
virtual

Definition at line 204 of file CZipCreator.cpp.

205{
206 // canonicalize path
209
210 m_pimpl->m_items.Add(szPath);
211}
#define NULL
Definition: types.h:112
#define MAX_PATH
Definition: compat.h:34
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
Definition: path.c:1106
LPCWSTR szPath
Definition: env.c:37
#define _countof(array)
Definition: sndvol32.h:68
__wchar_t WCHAR
Definition: xmlstorage.h:180

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 182 of file CZipCreator.cpp.

183{
184 unsigned tid = 0;
185 HANDLE hThread = reinterpret_cast<HANDLE>(
186 _beginthreadex(NULL, 0, create_zip_function, pCreator, 0, &tid));
187
188 if (hThread)
189 {
191 return TRUE;
192 }
193
194 DPRINT1("hThread == NULL\n");
195
198 MessageBoxW(NULL, strText, strTitle, MB_ICONERROR);
199
200 delete pCreator;
201 return FALSE;
202}
static unsigned __stdcall create_zip_function(void *arg)
#define DPRINT1
Definition: precomp.h:8
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define IDS_ERRORTITLE
Definition: resource.h:47
#define IDS_CANTSTARTTHREAD
Definition: resource.h:48
#define CloseHandle
Definition: compat.h:739
static TfClientId tid
HANDLE hThread
Definition: wizard.c:28
_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)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_ICONERROR
Definition: winuser.h:787
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

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: