ReactOS 0.4.15-dev-5669-g09dde2c
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}
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 171 of file CZipCreator.cpp.

172{
174}
#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}
#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 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}
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:781
#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: