ReactOS  0.4.14-dev-358-gbef841c
CZipExtract.cpp
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Zip Shell Extension
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Zip extraction
5  * COPYRIGHT: Copyright 2017-2019 Mark Jansen (mark.jansen@reactos.org)
6  */
7 
8 #include "precomp.h"
9 
10 class CZipExtract :
11  public IZip
12 {
18 public:
21  ,uf(NULL)
22  {
25  PWSTR Dir = m_Directory.GetBuffer();
28  }
29 
31  {
32  if (uf)
33  {
34  DPRINT1("WARNING: uf not closed!\n");
35  Close();
36  }
37  }
38 
39  void Close()
40  {
41  if (uf)
42  unzClose(uf);
43  uf = NULL;
44  }
45 
46  // *** IZip methods ***
48  {
49  if (riid == IID_IUnknown)
50  {
51  *ppvObject = this;
52  AddRef();
53  return S_OK;
54  }
55  return E_NOINTERFACE;
56  }
58  {
59  return 2;
60  }
62  {
63  return 1;
64  }
66  {
67  return uf;
68  }
69 
70  class CExtractSettingsPage : public CPropertyPageImpl<CExtractSettingsPage>
71  {
72  private:
75 
76  public:
81  {
82  m_psp.pszHeaderTitle = MAKEINTRESOURCE(IDS_WIZ_DEST_TITLE);
83  m_psp.pszHeaderSubTitle = MAKEINTRESOURCE(IDS_WIZ_DEST_SUBTITLE);
84  m_psp.dwFlags |= PSP_USETITLE | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
85  }
86 
88  {
93  return 0;
94  }
95 
97  {
101  SetWizardButtons(0);
102 
104  UpdateDirectory();
105 
107  {
108  /* Extraction failed, do not go to the next page */
110 
115 
116  return TRUE;
117  }
118  return 0;
119  }
120 
121  struct browse_info
122  {
125  };
126 
128  {
129  if (uMsg == BFFM_INITIALIZED)
130  {
132  CWindow dlg(hWnd);
133  dlg.SendMessage(BFFM_SETSELECTION, TRUE, (LPARAM)info->Directory);
134  dlg.CenterWindow(info->hWnd);
135  }
136  return 0;
137  }
138 
139  LRESULT OnBrowse(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
140  {
141  BROWSEINFOW bi = { m_hWnd };
143  bi.pszDisplayName = path;
147  bi.lpszTitle = title;
148 
150  UpdateDirectory();
151 
153  bi.lParam = (LPARAM)&info;
154 
156  pidl.Attach(SHBrowseForFolderW(&bi));
157 
158  WCHAR tmpPath[MAX_PATH];
159  if (pidl && SHGetPathFromIDListW(pidl, tmpPath))
160  {
161  m_pExtract->m_Directory = tmpPath;
164  }
165  return 0;
166  }
167 
168  LRESULT OnEnChangeDirectory(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
169  {
171  return 0;
172  }
173 
174  LRESULT OnPassword(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
175  {
178  {
180  }
181  return 0;
182  }
183 
185  {
188  }
189 
190  public:
192 
198  END_MSG_MAP()
199  };
200 
201 
202  class CCompleteSettingsPage : public CPropertyPageImpl<CCompleteSettingsPage>
203  {
204  private:
206 
207  public:
211  {
212  m_psp.pszHeaderTitle = MAKEINTRESOURCE(IDS_WIZ_COMPL_TITLE);
213  m_psp.pszHeaderSubTitle = MAKEINTRESOURCE(IDS_WIZ_COMPL_SUBTITLE);
214  m_psp.dwFlags |= PSP_USETITLE | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
215  }
216 
217 
219  {
222  PWSTR Ptr = Path.GetBuffer();
223  RECT rc;
225  HDC dc = GetDC();
226  PathCompactPathW(dc, Ptr, rc.right - rc.left);
227  ReleaseDC(dc);
228  Path.ReleaseBuffer();
231  return 0;
232  }
234  {
236  {
238  }
239  return FALSE;
240  }
241 
242  public:
244 
247  END_MSG_MAP()
248  };
249 
250 
251  void runWizard()
252  {
253  PROPSHEETHEADERW psh = { sizeof(psh), 0 };
254  psh.dwFlags = PSH_WIZARD97 | PSH_HEADER;
255  psh.hInstance = _AtlBaseModule.GetResourceInstance();
256 
257  CExtractSettingsPage extractPage(this, &m_Password);
258  CCompleteSettingsPage completePage(this);
259  HPROPSHEETPAGE hpsp[] =
260  {
261  extractPage.Create(),
262  completePage.Create()
263  };
264 
265  psh.phpage = hpsp;
266  psh.nPages = _countof(hpsp);
267 
268  PropertySheetW(&psh);
269  }
270 
271  bool Extract(HWND hDlg, HWND hProgress)
272  {
275  int err = unzGetGlobalInfo64(uf, &gi);
276  if (err != UNZ_OK)
277  {
278  DPRINT1("ERROR, unzGetGlobalInfo64: 0x%x\n", err);
279  Close();
280  return false;
281  }
282 
283  CZipEnumerator zipEnum;
284  if (!zipEnum.initialize(this))
285  {
286  DPRINT1("ERROR, zipEnum.initialize\n");
287  Close();
288  return false;
289  }
290 
291  CWindow Progress(hProgress);
292  Progress.SendMessage(PBM_SETRANGE32, 0, gi.number_entry);
293  Progress.SendMessage(PBM_SETPOS, 0, 0);
294 
295  BYTE Buffer[2048];
296  CStringA BaseDirectory = m_Directory;
297  CStringA Name;
300  int CurrentFile = 0;
301  bool bOverwriteAll = false;
302  while (zipEnum.next(Name, Info))
303  {
304  bool is_dir = Name.GetLength() > 0 && Name[Name.GetLength()-1] == '/';
305 
306  char CombinedPath[MAX_PATH * 2] = { 0 };
307  PathCombineA(CombinedPath, BaseDirectory, Name);
308  CStringA FullPath = CombinedPath;
309  FullPath.Replace('/', '\\'); /* SHPathPrepareForWriteA does not handle '/' */
311  HRESULT hr = SHPathPrepareForWriteA(hDlg, NULL, FullPath, dwFlags);
312  if (FAILED_UNEXPECTEDLY(hr))
313  {
314  Close();
315  return false;
316  }
317  CurrentFile++;
318  if (is_dir)
319  continue;
320 
321  if (Info.flag & MINIZIP_PASSWORD_FLAG)
322  {
324  do
325  {
326  /* If there is a password set, try it */
327  if (!Password.IsEmpty())
328  {
330  if (err == UNZ_OK)
331  {
332  /* Try to read some bytes, because unzOpenCurrentFilePassword does not return failure */
333  char Buf[10];
334  err = unzReadCurrentFile(uf, Buf, sizeof(Buf));
336  if (err >= UNZ_OK)
337  {
338  /* 're'-open the file so that we can begin to extract */
340  break;
341  }
342  }
343  }
345  } while (Response == eAccept);
346 
347  if (Response == eSkip)
348  {
349  Progress.SendMessage(PBM_SETPOS, CurrentFile, 0);
350  continue;
351  }
352  else if (Response == eAbort)
353  {
354  Close();
355  return false;
356  }
357  }
358  else
359  {
361  }
362 
363  if (err != UNZ_OK)
364  {
365  DPRINT1("ERROR, unzOpenCurrentFilePassword: 0x%x\n", err);
366  Close();
367  return false;
368  }
369 
372  {
374  if (dwErr == ERROR_FILE_EXISTS)
375  {
376  bool bOverwrite = bOverwriteAll;
377  if (!bOverwriteAll)
378  {
379  eZipConfirmResponse Result = _CZipAskReplace(hDlg, FullPath);
380  switch (Result)
381  {
382  case eYesToAll:
383  bOverwriteAll = true;
384  case eYes:
385  bOverwrite = true;
386  break;
387  case eNo:
388  break;
389  case eCancel:
391  Close();
392  return false;
393  }
394  }
395 
396  if (bOverwrite)
397  {
400  {
401  dwErr = GetLastError();
402  }
403  }
404  else
405  {
407  continue;
408  }
409  }
411  {
413  DPRINT1("ERROR, CreateFileA: 0x%x (%s)\n", dwErr, bOverwriteAll ? "Y" : "N");
414  Close();
415  return false;
416  }
417  }
418 
419  do
420  {
421  err = unzReadCurrentFile(uf, Buffer, sizeof(Buffer));
422 
423  if (err < 0)
424  {
425  DPRINT1("ERROR, unzReadCurrentFile: 0x%x\n", err);
426  break;
427  }
428  else if (err > 0)
429  {
430  DWORD dwWritten;
431  if (!WriteFile(hFile, Buffer, err, &dwWritten, NULL))
432  {
433  DPRINT1("ERROR, WriteFile: 0x%x\n", GetLastError());
434  break;
435  }
436  if (dwWritten != (DWORD)err)
437  {
438  DPRINT1("ERROR, WriteFile: dwWritten:%d err:%d\n", dwWritten, err);
439  break;
440  }
441  }
442 
443  } while (err > 0);
444 
445  /* Update Filetime */
446  FILETIME LastAccessTime;
447  GetFileTime(hFile, NULL, &LastAccessTime, NULL);
448  FILETIME LocalFileTime;
449  DosDateTimeToFileTime((WORD)(Info.dosDate >> 16), (WORD)Info.dosDate, &LocalFileTime);
450  FILETIME FileTime;
451  LocalFileTimeToFileTime(&LocalFileTime, &FileTime);
452  SetFileTime(hFile, &FileTime, &LastAccessTime, &FileTime);
453 
454  /* Done.. */
456 
457  if (err)
458  {
460  DPRINT1("ERROR, unzReadCurrentFile2: 0x%x\n", err);
461  Close();
462  return false;
463  }
464  else
465  {
467  if (err != UNZ_OK)
468  {
469  DPRINT1("ERROR(non-fatal), unzCloseCurrentFile: 0x%x\n", err);
470  }
471  }
472  Progress.SendMessage(PBM_SETPOS, CurrentFile, 0);
473  }
474 
475  Close();
476  return true;
477  }
478 };
479 
480 
482 {
483  CZipExtract extractor(Filename);
484  extractor.runWizard();
485 }
486 
HPROPSHEETPAGE Create()
Definition: rosdlgs.h:57
CCompleteSettingsPage(CZipExtract *extract)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: rw.c:24
#define MAKEINTRESOURCE
Definition: winuser.h:591
const uint16_t * PCWSTR
Definition: typedefs.h:55
#define ERROR_FILE_EXISTS
Definition: winerror.h:165
#define PBM_SETRANGE32
Definition: commctrl.h:2184
#define REFIID
Definition: guiddef.h:118
#define TRUE
Definition: types.h:120
#define CloseHandle
Definition: compat.h:406
#define E_NOINTERFACE
Definition: winerror.h:2364
UINT IsDlgButtonChecked(int nIDButton) const
Definition: atlwin.h:858
HRESULT hr
Definition: shlfolder.c:183
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
CStringW m_Filename
Definition: CZipExtract.cpp:13
eZipPasswordResponse _CZipAskPassword(HWND hDlg, const char *filename, CStringA &Password)
#define COMMAND_HANDLER(id, code, func)
Definition: atlwin.h:1816
Definition: precomp.h:71
GLsizei const GLchar ** path
Definition: glext.h:7234
REFIID riid
Definition: precomp.h:44
#define IDC_BROWSE
Definition: resource.h:21
uint16_t * PWSTR
Definition: typedefs.h:54
#define _countof(array)
Definition: fontsub.cpp:30
voidp unzFile
Definition: unzip.h:70
LRESULT OnEnChangeDirectory(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
#define UNZ_OK
Definition: unzip.h:74
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898
BOOL EnableWindow(BOOL bEnable=TRUE)
Definition: atlwin.h:489
CZipExtract(PCWSTR Filename)
Definition: CZipExtract.cpp:19
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
Definition: pidl.c:1280
static HDC
Definition: imagelist.c:92
#define CALLBACK
Definition: compat.h:27
HWND hWnd
Definition: settings.c:17
#define BFFM_INITIALIZED
Definition: shlobj.h:1154
#define PSWIZB_NEXT
Definition: prsht.h:154
#define INVALID_HANDLE_VALUE
Definition: compat.h:399
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
CStringA m_Password
Definition: CZipExtract.cpp:15
#define PBM_SETPOS
Definition: commctrl.h:2180
HDC dc
Definition: cylfrac.c:34
bool initialize(IZip *zip)
LONG left
Definition: windef.h:291
void Close()
Definition: CZipExtract.cpp:39
LONG right
Definition: windef.h:293
#define IDC_DIRECTORY
Definition: resource.h:10
int32_t INT
Definition: typedefs.h:56
LRESULT OnPassword(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
int ZEXPORT unzClose(unzFile file)
Definition: unzip.c:808
#define IDS_WIZ_DEST_TITLE
Definition: resource.h:42
struct TraceInfo Info
#define DWLP_MSGRESULT
Definition: winuser.h:864
IN PVCB IN PBCB OUT PDIRENT IN USHORT IN POEM_STRING Filename
Definition: fatprocs.h:925
BOOL extract(char *filename, const bin_file *bin)
Definition: mspatcha.c:158
bool m_DirectoryChanged
Definition: CZipExtract.cpp:16
CStringW m_Directory
Definition: CZipExtract.cpp:14
BOOL WINAPI SetFileTime(IN HANDLE hFile, CONST FILETIME *lpCreationTime OPTIONAL, CONST FILETIME *lpLastAccessTime OPTIONAL, CONST FILETIME *lpLastWriteTime OPTIONAL)
Definition: fileinfo.c:1098
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject)
Definition: CZipExtract.cpp:47
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
#define IDC_PROGRESS
Definition: resource.h:13
BOOL WINAPI LocalFileTimeToFileTime(IN CONST FILETIME *lpLocalFileTime, OUT LPFILETIME lpFileTime)
Definition: time.c:243
int ZEXPORT unzOpenCurrentFile(unzFile file)
Definition: unzip.c:1641
void ReleaseBuffer(_In_ int nNewLength=-1)
Definition: atlsimpstr.h:372
int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info)
Definition: unzip.c:828
void WINAPI PathRemoveExtensionW(LPWSTR lpszPath)
Definition: path.c:818
#define BFFM_SETSELECTION
Definition: shlobj.h:1174
#define SHPPFW_DIRCREATE
Definition: shlobj.h:303
unsigned int BOOL
Definition: ntddk_ex.h:94
LPWSTR pszDisplayName
Definition: shlobj.h:1120
Definition: IZip.hpp:8
#define GENERIC_WRITE
Definition: nt_native.h:90
struct _PSP * HPROPSHEETPAGE
Definition: mstask.idl:90
eZipConfirmResponse _CZipAskReplace(HWND hDlg, PCSTR FullPath)
BOOL CheckDlgButton(int nIDButton, UINT nCheck)
Definition: atlwin.h:335
LONG_PTR SetWindowLongPtr(int nIndex, LONG_PTR dwNewLong)
Definition: atlwin.h:1208
BOOL WINAPI PathCompactPathW(HDC hDC, LPWSTR lpszPath, UINT dx)
Definition: path.c:2870
#define BIF_RETURNFSANCESTORS
Definition: shlobj.h:1138
#define STDMETHODIMP
Definition: basetyps.h:43
struct NameRec_ * Name
Definition: cdprocs.h:464
ULONG Release()
BOOL GetWindowRect(LPRECT lpRect) const
Definition: atlwin.h:764
Definition: precomp.h:63
eZipConfirmResponse
Definition: precomp.h:69
smooth NULL
Definition: ftsmooth.c:416
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:652
int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, unsigned len)
Definition: unzip.c:1684
_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
LONG_PTR LPARAM
Definition: windef.h:208
#define IDS_WIZ_BROWSE_TITLE
Definition: resource.h:47
Definition: precomp.h:73
#define COMMAND_ID_HANDLER(id, func)
Definition: atlwin.h:1825
Definition: bufpool.h:45
STDMETHODIMP_(unzFile) getZip()
Definition: CZipExtract.cpp:65
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
Definition: propsheet.c:2905
#define SW_SHOW
Definition: winuser.h:769
HWND GetDlgItem(int nID)
Definition: atlwin.h:571
#define PSWIZB_FINISH
Definition: prsht.h:155
LPCWSTR lpszTitle
Definition: shlobj.h:1121
DWORD dwErr
Definition: service.c:36
#define IDC_SHOW_EXTRACTED
Definition: resource.h:17
unzFile uf
Definition: CZipExtract.cpp:17
int ZEXPORT unzCloseCurrentFile(unzFile file)
Definition: unzip.c:2004
#define BIF_NEWDIALOGSTYLE
Definition: shlobj.h:1141
__wchar_t WCHAR
Definition: xmlstorage.h:180
BOOL WINAPI DosDateTimeToFileTime(IN WORD wFatDate, IN WORD wFatTime, OUT LPFILETIME lpFileTime)
Definition: time.c:75
LONG HRESULT
Definition: typedefs.h:77
#define END_MSG_MAP()
Definition: atlwin.h:1789
HINSTANCE hInstance
Definition: prsht.h:278
const GUID IID_IUnknown
#define FAILED_UNEXPECTEDLY(hr)
Definition: shellutils.h:71
unzFile ZEXPORT unzOpen2_64(const void *path, zlib_filefunc64_def *pzlib_filefunc_def)
Definition: unzip.c:778
#define MAX_PATH
Definition: compat.h:26
zlib_filefunc64_def g_FFunc
Definition: zipfldr.cpp:42
#define IDS_WIZ_COMPL_TITLE
Definition: resource.h:44
PCXSTR GetString() const
Definition: atlsimpstr.h:361
BOOL CenterWindow(HWND hWndCenter=NULL)
Definition: atlwin.h:309
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
STDMETHODIMP_(ULONG) AddRef(void)
Definition: CZipExtract.cpp:57
LPSTR WINAPI PathCombineA(LPSTR lpszDest, LPCSTR lpszDir, LPCSTR lpszFile)
Definition: path.c:154
DWORD dwFlags
Definition: prsht.h:276
#define IDD_PROPPAGECOMPLETE
Definition: resource.h:15
int ZEXPORT unzOpenCurrentFilePassword(unzFile file, const char *password)
Definition: unzip.c:1646
Definition: ncftp.h:89
ULONG AddRef()
void runWizard()
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:126
bool Extract(HWND hDlg, HWND hProgress)
static const WCHAR L[]
Definition: oid.c:1250
T1_FIELD_DICT_PRIVATE password
Definition: t1tokens.h:64
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
CExtractSettingsPage(CZipExtract *extract, CStringA *password)
Definition: CZipExtract.cpp:77
#define CHAIN_MSG_MAP(theChainClass)
Definition: atlwin.h:1870
unsigned char BYTE
Definition: mem.h:68
HWND m_hWnd
Definition: atlwin.h:268
#define false
Definition: stdbool.h:38
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define MINIZIP_PASSWORD_FLAG
Definition: precomp.h:43
#define err(...)
UINT GetDlgItemText(int nID, LPTSTR lpStr, int nMaxCount) const
Definition: atlwin.h:583
#define PSP_USETITLE
Definition: prsht.h:26
_In_ HANDLE hFile
Definition: mswsock.h:90
static INT CALLBACK s_BrowseCallbackProc(HWND hWnd, UINT uMsg, LPARAM lp, LPARAM pData)
EXTERN_C HRESULT WINAPI SHPathPrepareForWriteA(HWND hwnd, IUnknown *modless, LPCSTR path, DWORD flags)
Definition: shlfileop.cpp:2086
int ReleaseDC(HDC hDC)
Definition: atlwin.h:1006
HPROPSHEETPAGE * phpage
Definition: prsht.h:291
LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi)
Definition: brsfolder.c:1156
int Replace(PCXSTR pszOld, PCXSTR pszNew)
Definition: cstringt.h:696
#define S_OK
Definition: intsafe.h:59
#define CREATE_ALWAYS
Definition: disk.h:72
UINT ulFlags
Definition: shlobj.h:1122
PRTL_UNICODE_STRING_BUFFER Path
bool next(CStringA &name, unz_file_info64 &info)
#define BIF_RETURNONLYFSDIRS
Definition: shlobj.h:1135
LPARAM lParam
Definition: shlobj.h:1124
STDMETHODIMP_(ULONG) Release(void)
Definition: CZipExtract.cpp:61
void _CZipExtract_runWizard(PCWSTR Filename)
Definition: services.c:325
BFFCALLBACK lpfn
Definition: shlobj.h:1123
unsigned int UINT
Definition: ndis.h:50
eZipPasswordResponse
Definition: precomp.h:60
#define IDC_DESTDIR
Definition: resource.h:16
#define BST_CHECKED
Definition: winuser.h:197
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1770
#define DPRINT1
Definition: precomp.h:8
Definition: precomp.h:62
#define IDS_WIZ_TITLE
Definition: resource.h:41
LRESULT OnBrowse(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
#define SHPPFW_NONE
Definition: shlobj.h:302
HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpVerb, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
Definition: shlexec.cpp:2246
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1048
unsigned int ULONG
Definition: retypes.h:1
#define SHPPFW_IGNOREFILENAME
Definition: shlobj.h:306
#define CREATE_NEW
Definition: disk.h:69
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
CWindow GetParent() const
Definition: atlwin.h:654
#define IDS_WIZ_DEST_SUBTITLE
Definition: resource.h:43
#define CreateFileA(a, b, c, d, e, f, g)
Definition: compat.h:407
#define IDS_WIZ_COMPL_SUBTITLE
Definition: resource.h:45
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1827
LONG_PTR LRESULT
Definition: windef.h:209
#define IDD_PROPPAGEDESTINATION
Definition: resource.h:9
static char title[]
Definition: ps.c:92
BOOL WINAPI GetFileTime(IN HANDLE hFile, OUT LPFILETIME lpCreationTime OPTIONAL, OUT LPFILETIME lpLastAccessTime OPTIONAL, OUT LPFILETIME lpLastWriteTime OPTIONAL)
Definition: fileinfo.c:1046
HDC GetDC()
Definition: atlwin.h:513
#define IDC_PASSWORD
Definition: resource.h:12
ZPOS64_T number_entry
Definition: unzip.h:98
#define EN_CHANGE
Definition: winuser.h:2004