1 |
twoaday |
2 |
/* wptFileMangerDlg.cpp - File Manager |
2 |
|
|
* Copyright (C) 2001-2005 Timo Schulz |
3 |
|
|
* |
4 |
|
|
* This file is part of WinPT. |
5 |
|
|
* |
6 |
|
|
* WinPT is free software; you can redistribute it and/or modify |
7 |
|
|
* it under the terms of the GNU General Public License as published by |
8 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
9 |
|
|
* (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* WinPT is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
18 |
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#include <windows.h> |
22 |
|
|
#include <commctrl.h> |
23 |
twoaday |
25 |
#include <sys/stat.h> |
24 |
twoaday |
2 |
|
25 |
|
|
#include "../resource.h" |
26 |
|
|
#include "wptCommonCtl.h" |
27 |
|
|
#include "wptGPG.h" |
28 |
|
|
#include "wptW32API.h" |
29 |
|
|
#include "wptKeylist.h" |
30 |
|
|
#include "wptErrors.h" |
31 |
|
|
#include "wptContext.h" /* for passphrase_s */ |
32 |
|
|
#include "wptDlgs.h" |
33 |
|
|
#include "wptTypes.h" |
34 |
|
|
#include "wptNLS.h" |
35 |
|
|
#include "wptVersion.h" |
36 |
|
|
#include "wptFileManager.h" |
37 |
twoaday |
5 |
#include "wptRegistry.h" |
38 |
twoaday |
2 |
|
39 |
twoaday |
25 |
#define FM_SEPARATOR_ID 10001 |
40 |
|
|
|
41 |
twoaday |
2 |
#define send_cmd_id(hwnd, id) \ |
42 |
|
|
PostMessage( (hwnd), WM_COMMAND, MAKEWPARAM( (id), 0), 0 ) |
43 |
|
|
|
44 |
|
|
static subclass_s filelist_proc; |
45 |
|
|
|
46 |
|
|
struct thread_ctx_s { |
47 |
|
|
HWND dlg; |
48 |
|
|
HANDLE fd; |
49 |
twoaday |
25 |
char *drive; |
50 |
twoaday |
2 |
}; |
51 |
twoaday |
25 |
typedef struct thread_ctx_s *thread_ctx_t; |
52 |
twoaday |
2 |
|
53 |
|
|
|
54 |
twoaday |
23 |
/* Dialog procedure for selecting recipients for encryption. */ |
55 |
twoaday |
2 |
BOOL CALLBACK |
56 |
|
|
file_encrypt_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
57 |
|
|
{ |
58 |
|
|
static listview_ctrl_t lv = NULL; |
59 |
|
|
static fm_state_t c; |
60 |
|
|
static int req_signer = 0; |
61 |
|
|
static keylist_t list = NULL; |
62 |
twoaday |
25 |
gpg_keycache_t kc; |
63 |
twoaday |
2 |
gpgme_ctx_t ctx; |
64 |
|
|
int force_trust = 0, count = 0; |
65 |
|
|
|
66 |
|
|
switch (msg) { |
67 |
|
|
case WM_INITDIALOG: |
68 |
|
|
req_signer = 0; |
69 |
|
|
c = (fm_state_t)lparam; |
70 |
|
|
if (!c) |
71 |
|
|
dlg_fatal_error( dlg, "Could not get dialog state!" ); |
72 |
|
|
kc = keycache_get_ctx (KEYCACHE_PUB); |
73 |
|
|
if (!kc) |
74 |
|
|
BUG (dlg); |
75 |
|
|
#ifndef LANG_DE |
76 |
|
|
SetWindowText( dlg, _("File Encrypt") ); |
77 |
|
|
SetDlgItemText( dlg, IDC_ENCRYPT_ARMOR, _("&Text Output") ); |
78 |
|
|
SetDlgItemText( dlg, IDC_ENCRYPT_WIPE, _("&Wipe Original") ); |
79 |
|
|
#endif |
80 |
|
|
if (c->req_signer) { |
81 |
|
|
EnableWindow (GetDlgItem (dlg, IDC_ENCRYPT_SIGN), TRUE); |
82 |
|
|
seclist_init (dlg, IDC_ENCRYPT_SECLIST, KEYLIST_FLAG_SHORT, &list); |
83 |
|
|
} |
84 |
|
|
lv = keylist_load (GetDlgItem (dlg, IDC_ENCRYPT_LIST), kc, NULL, |
85 |
twoaday |
23 |
KEYLIST_ENCRYPT|KEYLIST_FLAG_FILE, KEY_SORT_USERID); |
86 |
twoaday |
2 |
SetForegroundWindow (dlg); |
87 |
|
|
return TRUE; |
88 |
|
|
|
89 |
|
|
case WM_DESTROY: |
90 |
|
|
seclist_destroy (&list); |
91 |
|
|
if (lv) { |
92 |
|
|
keylist_delete (lv); |
93 |
|
|
lv = NULL; |
94 |
|
|
} |
95 |
|
|
return FALSE; |
96 |
|
|
|
97 |
|
|
case WM_NOTIFY: |
98 |
|
|
NMHDR *notify; |
99 |
|
|
notify = (NMHDR *)lparam; |
100 |
|
|
if( notify && notify->code == LVN_COLUMNCLICK |
101 |
|
|
&& notify->idFrom == IDC_ENCRYPT_LIST ) { |
102 |
|
|
NMLISTVIEW *p = (LPNMLISTVIEW) lparam; |
103 |
|
|
int sortby = 0; |
104 |
|
|
|
105 |
|
|
switch( p->iSubItem ) { |
106 |
twoaday |
23 |
case 0: sortby = KEY_SORT_USERID; break; |
107 |
|
|
case 1: sortby = KEY_SORT_KEYID; break; |
108 |
|
|
case 2: sortby = KEY_SORT_LEN; break; |
109 |
|
|
case 4: sortby = KEY_SORT_VALIDITY; break; |
110 |
|
|
default:sortby = KEY_SORT_USERID; break; |
111 |
twoaday |
2 |
} |
112 |
|
|
keylist_sort( lv, sortby ); |
113 |
|
|
} |
114 |
|
|
|
115 |
|
|
case WM_SYSCOMMAND: |
116 |
|
|
if( LOWORD( wparam ) == SC_CLOSE ) { |
117 |
|
|
c->cancel = 1; |
118 |
|
|
EndDialog( dlg, TRUE ); |
119 |
|
|
} |
120 |
|
|
return FALSE; |
121 |
|
|
|
122 |
|
|
case WM_COMMAND: |
123 |
|
|
if (HIWORD (wparam) == BN_CLICKED |
124 |
|
|
&& LOWORD (wparam) == IDC_ENCRYPT_SIGN) { |
125 |
|
|
req_signer ^= 1; |
126 |
|
|
EnableWindow (GetDlgItem (dlg, IDC_ENCRYPT_SECLIST), |
127 |
|
|
req_signer? TRUE : FALSE); |
128 |
|
|
} |
129 |
|
|
switch( LOWORD( wparam ) ) { |
130 |
|
|
case IDOK: |
131 |
|
|
ctx = c->ctx; |
132 |
twoaday |
23 |
if (c->recp) |
133 |
|
|
free (c->recp); |
134 |
twoaday |
25 |
c->recp = keylist_get_recipients (lv, &force_trust, &c->n_recp); |
135 |
|
|
if (!c->n_recp) { |
136 |
twoaday |
2 |
msg_box (dlg, _("Please select at least one recipient."), |
137 |
|
|
_("File Encrypt"), MB_ERR); |
138 |
twoaday |
23 |
free (c->recp); |
139 |
twoaday |
2 |
c->recp = NULL; |
140 |
|
|
c->cancel = 1; |
141 |
twoaday |
23 |
return TRUE; |
142 |
twoaday |
2 |
} |
143 |
|
|
if (IsDlgButtonChecked (dlg, IDC_ENCRYPT_SIGN)) { |
144 |
|
|
gpgme_key_t key; |
145 |
|
|
|
146 |
|
|
if (seclist_select_key (dlg, IDC_ENCRYPT_SECLIST, &key)) |
147 |
twoaday |
23 |
return TRUE; |
148 |
twoaday |
2 |
else |
149 |
|
|
gpgme_signers_add (c->ctx, key); |
150 |
|
|
} |
151 |
|
|
|
152 |
|
|
if (IsDlgButtonChecked (dlg, IDC_ENCRYPT_ARMOR)) |
153 |
twoaday |
23 |
gpgme_set_armor (ctx, 1); |
154 |
twoaday |
2 |
if (IsDlgButtonChecked (dlg, IDC_ENCRYPT_WIPE)) |
155 |
|
|
c->wipe = 1; |
156 |
twoaday |
23 |
/* XXX: implement this |
157 |
twoaday |
2 |
if (IsDlgButtonChecked (dlg, IDC_ENCRYPT_ANON)) |
158 |
twoaday |
23 |
; |
159 |
|
|
*/ |
160 |
twoaday |
2 |
c->cancel = 0; |
161 |
|
|
EndDialog (dlg, TRUE); |
162 |
|
|
return TRUE; |
163 |
|
|
|
164 |
|
|
case IDCANCEL: |
165 |
|
|
c->cancel = 1; |
166 |
|
|
EndDialog (dlg, FALSE); |
167 |
twoaday |
23 |
return TRUE; |
168 |
twoaday |
2 |
} |
169 |
|
|
return TRUE; |
170 |
|
|
} |
171 |
|
|
|
172 |
|
|
return FALSE; |
173 |
|
|
} /* file_encrypt_dlg_proc */ |
174 |
|
|
|
175 |
|
|
|
176 |
|
|
BOOL CALLBACK |
177 |
|
|
file_import_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
178 |
|
|
{ |
179 |
|
|
static listview_ctrl_t lv = NULL; |
180 |
|
|
static fm_state_t c; |
181 |
|
|
static int is_revcert = 0, has_seckeys = 0; |
182 |
|
|
|
183 |
|
|
switch( msg ) { |
184 |
|
|
case WM_INITDIALOG: |
185 |
|
|
c = (fm_state_s *)lparam; |
186 |
|
|
if (!c) |
187 |
|
|
dlg_fatal_error( dlg, "Could not get dialog param!" ); |
188 |
twoaday |
22 |
#ifndef LANG_DE |
189 |
twoaday |
25 |
SetWindowText (dlg, _("Key Import")); |
190 |
twoaday |
22 |
#endif |
191 |
twoaday |
2 |
ShowWindow( GetDlgItem( dlg, IDC_IMPORT_KEYMNGT ), WS_DISABLED ); |
192 |
twoaday |
22 |
/* XXX: use the new code */ |
193 |
twoaday |
25 |
implist_build (&lv, GetDlgItem (dlg, IDC_IMPORT_KEYLIST)); |
194 |
|
|
implist_load (lv, c->opaque, &is_revcert, &has_seckeys); |
195 |
twoaday |
22 |
if (!listview_count_items (lv, 0)) { |
196 |
twoaday |
25 |
msg_box (dlg, _("No valid OpenPGP data found."), _("Key Import"), MB_ERR); |
197 |
twoaday |
2 |
c->cancel = 1; |
198 |
twoaday |
22 |
EndDialog (dlg, FALSE); |
199 |
twoaday |
2 |
} |
200 |
twoaday |
22 |
else { |
201 |
|
|
const char *s = "File contain(s) %d key(s)."; |
202 |
|
|
char *p = new char[strlen (s) + 32]; |
203 |
|
|
if (!p) |
204 |
|
|
BUG (0); |
205 |
|
|
sprintf (p, s, listview_count_items (lv, 0)); |
206 |
|
|
SetDlgItemText (dlg, IDC_IMPORT_INFO, p); |
207 |
|
|
free_if_alloc (p); |
208 |
|
|
} |
209 |
|
|
SetForegroundWindow (dlg); |
210 |
twoaday |
2 |
return TRUE; |
211 |
|
|
|
212 |
|
|
case WM_DESTROY: |
213 |
twoaday |
22 |
if (lv) { |
214 |
|
|
listview_release (lv); |
215 |
twoaday |
2 |
lv = NULL; |
216 |
|
|
} |
217 |
|
|
return FALSE; |
218 |
|
|
|
219 |
|
|
case WM_SYSCOMMAND: |
220 |
twoaday |
25 |
if (LOWORD (wparam) == SC_CLOSE) { |
221 |
twoaday |
2 |
c->cancel = 1; |
222 |
twoaday |
25 |
EndDialog (dlg, FALSE); |
223 |
twoaday |
2 |
} |
224 |
|
|
return FALSE; |
225 |
|
|
|
226 |
|
|
case WM_COMMAND: |
227 |
twoaday |
25 |
switch (LOWORD (wparam)) { |
228 |
twoaday |
2 |
case IDC_IMPORT_DOIT: |
229 |
|
|
c->cancel = 0; |
230 |
twoaday |
25 |
c->import.revcert = is_revcert? 1 : 0; |
231 |
|
|
c->import.has_seckey = has_seckeys? 1 : 0; |
232 |
|
|
EndDialog (dlg, TRUE); |
233 |
twoaday |
2 |
return TRUE; |
234 |
|
|
|
235 |
|
|
case IDCANCEL: |
236 |
|
|
c->cancel = 1; |
237 |
twoaday |
25 |
EndDialog (dlg, FALSE); |
238 |
twoaday |
2 |
return FALSE; |
239 |
|
|
} |
240 |
|
|
break; |
241 |
|
|
} |
242 |
|
|
|
243 |
|
|
return FALSE; |
244 |
|
|
} /* file_import_dlg_proc */ |
245 |
|
|
|
246 |
|
|
|
247 |
|
|
BOOL CALLBACK |
248 |
|
|
file_sign_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam ) |
249 |
|
|
{ |
250 |
|
|
static fm_state_t c; |
251 |
|
|
static listview_ctrl_t lv; |
252 |
twoaday |
25 |
gpg_keycache_t kc, sec_kc; |
253 |
twoaday |
2 |
gpgme_key_t key; |
254 |
|
|
int lv_idx; |
255 |
|
|
char signer[32]; |
256 |
|
|
|
257 |
|
|
switch( msg ) { |
258 |
|
|
case WM_INITDIALOG: |
259 |
|
|
c = (fm_state_s *)lparam; |
260 |
|
|
if( c == NULL ) |
261 |
|
|
dlg_fatal_error( dlg, "Could not get dialog state!" ); |
262 |
|
|
#ifndef LANG_DE |
263 |
|
|
SetWindowText (dlg, _("File Sign")); |
264 |
|
|
SetDlgItemText (dlg, IDC_FILE_SIG_ARMOR, _("&Text Output") ); |
265 |
|
|
SetDlgItemText (dlg, IDC_FILE_SIG_NORMAL, _("&Normal Signature")); |
266 |
|
|
SetDlgItemText (dlg, IDC_FILE_SIG_DETACH, _("&Detached Signature")); |
267 |
|
|
SetDlgItemText (dlg, IDC_FILE_SIG_CLEAR, _("&Cleartext Signature")); |
268 |
|
|
#endif |
269 |
|
|
CheckDlgButton (dlg, IDC_FILE_SIG_DETACH, BST_CHECKED); |
270 |
|
|
kc = keycache_get_ctx (KEYCACHE_PUB); |
271 |
|
|
if (!kc) |
272 |
|
|
BUG (dlg); |
273 |
|
|
sec_kc = keycache_get_ctx (KEYCACHE_PRV); |
274 |
|
|
if (!sec_kc) |
275 |
|
|
BUG( dlg ); |
276 |
|
|
lv = keylist_load( GetDlgItem(dlg, IDC_FILE_SIG_LIST), kc, sec_kc, |
277 |
twoaday |
23 |
KEYLIST_SIGN, KEY_SORT_USERID ); |
278 |
twoaday |
2 |
SetForegroundWindow( dlg ); |
279 |
|
|
return TRUE; |
280 |
|
|
|
281 |
|
|
case WM_DESTROY: |
282 |
|
|
if( lv ) { |
283 |
|
|
listview_release( lv ); |
284 |
|
|
lv = NULL; |
285 |
|
|
} |
286 |
|
|
return FALSE; |
287 |
|
|
|
288 |
|
|
case WM_SYSCOMMAND: |
289 |
|
|
if( LOWORD (wparam) == SC_CLOSE ) |
290 |
|
|
EndDialog( dlg, TRUE ); |
291 |
|
|
return FALSE; |
292 |
|
|
|
293 |
|
|
case WM_COMMAND: |
294 |
|
|
switch( LOWORD( wparam ) ) { |
295 |
|
|
case IDOK: |
296 |
|
|
if( IsDlgButtonChecked( dlg, IDC_FILE_SIG_ARMOR ) ) |
297 |
twoaday |
23 |
gpgme_set_armor (c->ctx, 1); |
298 |
twoaday |
2 |
if( IsDlgButtonChecked( dlg, IDC_FILE_SIG_NORMAL ) ) |
299 |
|
|
c->sigmode = GPGME_SIG_MODE_NORMAL; |
300 |
|
|
else if( IsDlgButtonChecked( dlg, IDC_FILE_SIG_DETACH ) ) |
301 |
|
|
c->sigmode = GPGME_SIG_MODE_DETACH; |
302 |
|
|
else if( IsDlgButtonChecked( dlg, IDC_FILE_SIG_CLEAR ) ) |
303 |
|
|
c->sigmode = GPGME_SIG_MODE_CLEAR; |
304 |
|
|
else { |
305 |
|
|
/* default is to produce detached signatures */ |
306 |
|
|
c->sigmode = GPGME_SIG_MODE_DETACH; |
307 |
|
|
} |
308 |
|
|
lv_idx = listview_get_curr_pos( lv ); |
309 |
|
|
if (lv_idx == -1) { |
310 |
|
|
if (listview_count_items (lv, 0) == 1) |
311 |
|
|
lv_idx = 0; |
312 |
|
|
else { |
313 |
|
|
msg_box (dlg, _("Please select a key."), _("Sign"), MB_ERR); |
314 |
|
|
return FALSE; |
315 |
|
|
} |
316 |
|
|
} |
317 |
|
|
listview_get_item_text( lv, lv_idx, 1, signer, sizeof signer-1 ); |
318 |
|
|
if( get_seckey( signer, &key ) ) |
319 |
|
|
BUG( NULL ); |
320 |
|
|
gpgme_signers_clear (c->ctx); |
321 |
|
|
gpgme_signers_add (c->ctx, key); |
322 |
|
|
free_if_alloc (c->opaque); |
323 |
|
|
c->opaque = m_strdup (signer); /* store for later use */ |
324 |
|
|
c->cancel = 0; |
325 |
|
|
if (!c->opaque) |
326 |
|
|
BUG (0); |
327 |
|
|
EndDialog (dlg, TRUE); |
328 |
|
|
return TRUE; |
329 |
|
|
|
330 |
|
|
case IDCANCEL: |
331 |
|
|
c->cancel = 1; |
332 |
|
|
EndDialog (dlg, FALSE); |
333 |
|
|
return FALSE; |
334 |
|
|
} |
335 |
|
|
break; |
336 |
|
|
} |
337 |
|
|
|
338 |
|
|
return FALSE; |
339 |
|
|
} /* file_sign_dlg_proc */ |
340 |
|
|
|
341 |
|
|
|
342 |
|
|
|
343 |
twoaday |
25 |
static BOOL CALLBACK |
344 |
twoaday |
2 |
filelist_subclass_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
345 |
|
|
{ |
346 |
twoaday |
25 |
switch (msg) { |
347 |
twoaday |
2 |
case WM_KEYUP: |
348 |
|
|
int virt_key = (int)wparam; |
349 |
|
|
if (virt_key == VK_DELETE) |
350 |
|
|
send_cmd_id (filelist_proc.dlg, ID_FILEMISC_WIPE); |
351 |
|
|
break; |
352 |
|
|
} |
353 |
|
|
return CallWindowProc (filelist_proc.old, dlg, msg, wparam, lparam); |
354 |
|
|
} |
355 |
|
|
|
356 |
|
|
|
357 |
twoaday |
25 |
/* Setup status bar for the main window @dlg. */ |
358 |
|
|
static HWND |
359 |
|
|
setup_status_bar (HWND dlg) |
360 |
|
|
{ |
361 |
|
|
HWND statbar; |
362 |
|
|
RECT r; |
363 |
|
|
int partpos[3]; |
364 |
|
|
int i; |
365 |
|
|
|
366 |
|
|
GetClientRect (dlg, &r); |
367 |
|
|
for (i=1; i <= 3; i++) |
368 |
|
|
partpos[i-1] = r.right/3*i; |
369 |
|
|
|
370 |
|
|
statbar = CreateStatusWindow (WS_CHILD | WS_VISIBLE | CCS_BOTTOM, |
371 |
|
|
"", dlg, FM_SEPARATOR_ID); |
372 |
|
|
ShowWindow (statbar, SW_SHOW); |
373 |
|
|
SendMessage (statbar, SB_SETPARTS, (WPARAM)3, (LPARAM)partpos); |
374 |
|
|
return statbar; |
375 |
|
|
} |
376 |
|
|
|
377 |
|
|
|
378 |
|
|
/* Refresh the status bar text with the selected item from @lv. */ |
379 |
|
|
static void |
380 |
|
|
update_status_bar (HWND statbar, listview_ctrl_t lv) |
381 |
|
|
{ |
382 |
|
|
struct stat st; |
383 |
|
|
char buf[128]; |
384 |
|
|
int n = listview_count_items (lv, 1); |
385 |
|
|
_snprintf (buf, sizeof (buf)-1, "%d Object(s) marked", n); |
386 |
|
|
SendMessage (statbar, SB_SETTEXT, 0, (LPARAM)buf); |
387 |
|
|
listview_get_item_text (lv, listview_get_curr_pos (lv), 1, buf, 127); |
388 |
|
|
if (stat (buf, &st) == 0) { |
389 |
|
|
_snprintf (buf, sizeof (buf)-1, "%d KB", st.st_size/1024); |
390 |
|
|
SendMessage (statbar, SB_SETTEXT, 1, (LPARAM)buf); |
391 |
|
|
} |
392 |
|
|
} |
393 |
|
|
|
394 |
|
|
|
395 |
twoaday |
2 |
BOOL CALLBACK |
396 |
|
|
file_manager_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
397 |
|
|
{ |
398 |
twoaday |
25 |
static HWND statbar; |
399 |
twoaday |
2 |
static listview_ctrl_t lv = NULL; |
400 |
|
|
static HMENU menu = NULL; |
401 |
|
|
static int always_ontop = 1; |
402 |
|
|
HWND fl; |
403 |
|
|
|
404 |
twoaday |
25 |
switch (msg) { |
405 |
twoaday |
2 |
case WM_INITDIALOG: |
406 |
|
|
always_ontop = 1; |
407 |
|
|
menu = LoadMenu (glob_hinst, (LPCSTR)IDR_WINPT_FILEMISC); |
408 |
twoaday |
25 |
SetWindowText (dlg, _("File Manager (use drag & drop to add files)")); |
409 |
|
|
set_menu_text (menu, ID_FILEMISC_OPEN, _("&Open...") ); |
410 |
|
|
set_menu_text (menu, ID_FILEMISC_ENCRYPT, _("&Encrypt") ); |
411 |
|
|
set_menu_text (menu, ID_FILEMISC_DECRYPT, _("&Decrypt") ); |
412 |
|
|
set_menu_text (menu, ID_FILEMISC_SIGN, _("&Sign") ); |
413 |
|
|
set_menu_text (menu, ID_FILEMISC_SIGNENC, _("Sign && Encrypt") ); |
414 |
|
|
set_menu_text (menu, ID_FILEMISC_VERIFY, _("&Verify") ); |
415 |
|
|
set_menu_text (menu, ID_FILEMISC_WIPE, _("&Wipe") ); |
416 |
|
|
set_menu_text (menu, ID_FILEMISC_SYMENC, _("S&ymmetric") ); |
417 |
|
|
set_menu_text (menu, ID_FILEMISC_IMPORT, _("&Import") ); |
418 |
|
|
set_menu_text (menu, ID_FILEMISC_EXPORT, _("E&xport") ); |
419 |
|
|
set_menu_text (menu, ID_FILEMISC_QUIT, _("Exit")); |
420 |
|
|
set_menu_text (menu, ID_FILEMISC_CLEAR, _("&Reset") ); |
421 |
twoaday |
28 |
set_menu_text (menu, ID_FILEMISC_ONTOP, _("Always on Top")); |
422 |
|
|
set_menu_text (menu, ID_FILEMISC_PASTE _("&Paste")); |
423 |
|
|
set_menu_text (menu, ID_FILEMISC_SELALL _("&Select All")); |
424 |
|
|
set_menu_text (menu, ID_FILEMISC_PREFS _("&Preferences")); |
425 |
twoaday |
2 |
fl = GetDlgItem (dlg, IDC_FILE_LIST); |
426 |
|
|
filelist_proc.dlg = dlg; |
427 |
|
|
filelist_proc.current = (WNDPROC)filelist_subclass_proc; |
428 |
|
|
filelist_proc.old = (WNDPROC)GetWindowLong (fl, GWL_WNDPROC); |
429 |
|
|
if (filelist_proc.old) { |
430 |
|
|
if (!SetWindowLong (fl, GWL_WNDPROC, (LONG)filelist_proc.current)) { |
431 |
|
|
msg_box (dlg, _("Could not set filelist window procedure."), _("Key Manager"), MB_ERR); |
432 |
twoaday |
25 |
BUG (NULL); |
433 |
twoaday |
2 |
} |
434 |
|
|
} |
435 |
|
|
SetMenu (dlg, menu); |
436 |
|
|
fm_build (&lv, GetDlgItem (dlg, IDC_FILE_LIST)); |
437 |
twoaday |
23 |
center_window2 (dlg, NULL, HWND_TOPMOST); |
438 |
|
|
center_window (dlg, NULL); |
439 |
twoaday |
2 |
SetForegroundWindow (dlg); |
440 |
twoaday |
25 |
statbar = setup_status_bar (dlg); |
441 |
twoaday |
2 |
return TRUE; |
442 |
|
|
|
443 |
|
|
case WM_DESTROY: |
444 |
|
|
if (lv) { |
445 |
|
|
fm_delete (lv); |
446 |
|
|
lv = NULL; |
447 |
|
|
} |
448 |
|
|
if (menu) { |
449 |
|
|
DestroyMenu (menu); |
450 |
|
|
menu = NULL; |
451 |
|
|
} |
452 |
|
|
return FALSE; |
453 |
|
|
|
454 |
|
|
case WM_DROPFILES: |
455 |
|
|
fm_add_dropped_files (lv, (HDROP)wparam); |
456 |
|
|
return TRUE; |
457 |
|
|
|
458 |
|
|
case WM_NOTIFY: |
459 |
|
|
NMHDR *notify; |
460 |
|
|
int pos; |
461 |
|
|
HMENU hm; |
462 |
|
|
|
463 |
|
|
notify = (NMHDR *)lparam; |
464 |
twoaday |
25 |
if (notify && notify->code == NM_CLICK && |
465 |
|
|
notify->idFrom == IDC_FILE_LIST) |
466 |
|
|
update_status_bar (statbar, lv); |
467 |
twoaday |
2 |
if (notify && notify->code == NM_RCLICK |
468 |
|
|
&& notify->idFrom == IDC_FILE_LIST) { |
469 |
|
|
POINT p; |
470 |
|
|
HMENU popup; |
471 |
|
|
|
472 |
|
|
GetCursorPos (&p); |
473 |
|
|
hm = LoadMenu (glob_hinst, MAKEINTRESOURCE (IDR_WINPT_FILEMISC_CTX)); |
474 |
|
|
popup = GetSubMenu (hm, 0); |
475 |
|
|
set_menu_text (popup, ID_FILECTX_ENCRYPT, _("Encrypt")); |
476 |
|
|
set_menu_text (popup, ID_FILECTX_DECRYPT, _("Decrypt")); |
477 |
|
|
set_menu_text (popup, ID_FILECTX_SIGN, _("Sign")); |
478 |
|
|
set_menu_text (popup, ID_FILECTX_SIGNENC, _("Sign && Encrypt")); |
479 |
|
|
set_menu_text (popup, ID_FILECTX_VERIFY, _("Verify")); |
480 |
|
|
set_menu_text (popup, ID_FILECTX_WIPE, _("Wipe")); |
481 |
|
|
set_menu_text (popup, ID_FILECTX_SEND, _("Send as Mail")); |
482 |
|
|
pos = listview_get_curr_pos (lv); |
483 |
|
|
if (fm_check_file_type (lv, pos, FM_DECRYPT)) |
484 |
|
|
set_menu_state (popup, ID_FILECTX_SEND, MF_ENABLED); |
485 |
twoaday |
4 |
if (fm_check_file_type (lv, pos, FM_ENCRYPT)) { |
486 |
twoaday |
2 |
set_menu_state (popup, ID_FILECTX_DECRYPT, MF_GRAYED|MF_DISABLED); |
487 |
|
|
set_menu_state (popup, ID_FILECTX_VERIFY, MF_GRAYED|MF_DISABLED); |
488 |
|
|
} |
489 |
|
|
if (fm_check_file_type (lv, pos, FM_DECRYPT)) { |
490 |
|
|
set_menu_state (popup, ID_FILECTX_ENCRYPT, MF_GRAYED|MF_DISABLED); |
491 |
|
|
set_menu_state (popup, ID_FILECTX_SIGN, MF_GRAYED|MF_DISABLED); |
492 |
|
|
set_menu_state (popup, ID_FILECTX_SIGNENC, MF_GRAYED|MF_DISABLED); |
493 |
|
|
} |
494 |
|
|
if (fm_check_file_type (lv, pos, FM_VERIFY)) { |
495 |
|
|
set_menu_state (popup, ID_FILECTX_VERIFY, MF_ENABLED); |
496 |
|
|
set_menu_state (popup, ID_FILECTX_SIGN, MF_GRAYED|MF_DISABLED); |
497 |
|
|
set_menu_state (popup, ID_FILECTX_SIGNENC, MF_GRAYED|MF_DISABLED); |
498 |
|
|
} |
499 |
|
|
|
500 |
|
|
TrackPopupMenu(popup, TPM_RIGHTALIGN, p.x, p.y, 0, dlg, NULL); |
501 |
|
|
DestroyMenu (popup); |
502 |
|
|
DestroyMenu (hm); |
503 |
|
|
} |
504 |
|
|
if (notify && notify->code == NM_CLICK |
505 |
|
|
&& notify->idFrom == IDC_FILE_LIST) { |
506 |
|
|
hm = GetMenu (dlg); |
507 |
|
|
pos = listview_get_curr_pos (lv); |
508 |
|
|
if (!fm_check_file_type (lv, pos, FM_DECRYPT)) |
509 |
|
|
set_menu_state (hm, ID_FILEMISC_SEND, MF_GRAYED|MF_DISABLED); |
510 |
|
|
else |
511 |
|
|
set_menu_state (hm, ID_FILEMISC_SEND, MF_ENABLED); |
512 |
|
|
} |
513 |
|
|
return TRUE; |
514 |
|
|
|
515 |
|
|
case WM_SYSCOMMAND: |
516 |
|
|
if( LOWORD( wparam ) == SC_CLOSE ) |
517 |
|
|
EndDialog( dlg, TRUE ); |
518 |
|
|
return FALSE; |
519 |
|
|
|
520 |
|
|
case WM_COMMAND: |
521 |
|
|
switch( LOWORD( wparam ) ) { |
522 |
|
|
case ID_FILEMISC_QUIT: |
523 |
|
|
EndDialog( dlg, TRUE ); |
524 |
|
|
return TRUE; |
525 |
|
|
|
526 |
|
|
case ID_FILEMISC_WIPE_FREES: |
527 |
|
|
DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_SPACE_SECDEL, dlg, |
528 |
|
|
space_wipefrees_dlg_proc, NULL); |
529 |
|
|
break; |
530 |
|
|
|
531 |
|
|
case ID_FILEMISC_SELALL: |
532 |
|
|
listview_select_all (lv); |
533 |
|
|
break; |
534 |
|
|
|
535 |
|
|
case ID_FILEMISC_PASTE: |
536 |
|
|
fm_verify_pasted_detsig (lv, dlg); |
537 |
|
|
break; |
538 |
|
|
|
539 |
|
|
case ID_FILEMISC_ONTOP: |
540 |
|
|
always_ontop ^= 1; |
541 |
|
|
set_menu_state (menu, ID_FILEMISC_ONTOP, |
542 |
|
|
always_ontop == 0? MFS_UNCHECKED : MFS_CHECKED); |
543 |
twoaday |
23 |
center_window2 (dlg, NULL, always_ontop == 0? HWND_NOTOPMOST : HWND_TOPMOST); |
544 |
twoaday |
2 |
break; |
545 |
|
|
|
546 |
|
|
case ID_FILEMISC_SEND: |
547 |
|
|
fm_send_file (lv); |
548 |
|
|
break; |
549 |
|
|
|
550 |
twoaday |
5 |
case ID_FILEMISC_PREFS: |
551 |
|
|
DialogBoxParam (glob_hinst, (LPCTSTR)IDD_FILE_PREFS, dlg, |
552 |
|
|
file_preferences_dlg_proc, NULL); |
553 |
|
|
break; |
554 |
|
|
|
555 |
twoaday |
2 |
case ID_FILEMISC_LIST: |
556 |
|
|
case ID_FILEMISC_ENCRYPT: |
557 |
|
|
case ID_FILEMISC_SYMENC: |
558 |
|
|
case ID_FILEMISC_DECRYPT: |
559 |
|
|
case ID_FILEMISC_SIGN: |
560 |
|
|
case ID_FILEMISC_SIGNENC: |
561 |
|
|
case ID_FILEMISC_VERIFY: |
562 |
|
|
case ID_FILEMISC_WIPE: |
563 |
|
|
fm_parse_files (lv, dlg, LOWORD (wparam)); |
564 |
|
|
SetForegroundWindow (dlg); |
565 |
|
|
return TRUE; |
566 |
|
|
|
567 |
|
|
case ID_FILEMISC_MD_MD5: |
568 |
|
|
case ID_FILEMISC_MD_SHA1: |
569 |
|
|
case ID_FILEMISC_MD_RMD160: |
570 |
twoaday |
23 |
case ID_FILEMISC_MD_SHA256: |
571 |
|
|
int algo; |
572 |
|
|
|
573 |
|
|
switch (LOWORD (wparam)) { |
574 |
|
|
case ID_FILEMISC_MD_MD5: algo = GPGME_MD_MD5; break; |
575 |
|
|
case ID_FILEMISC_MD_SHA1: algo = GPGME_MD_SHA1; break; |
576 |
|
|
case ID_FILEMISC_MD_RMD160: algo = GPGME_MD_RMD160; break; |
577 |
|
|
case ID_FILEMISC_MD_SHA256:algo = GPGME_MD_SHA256; break; |
578 |
|
|
} |
579 |
|
|
fm_print_md (lv, dlg, algo); |
580 |
twoaday |
2 |
SetForegroundWindow (dlg); |
581 |
|
|
return TRUE; |
582 |
|
|
|
583 |
|
|
case ID_FILEMISC_CLEAR: |
584 |
|
|
listview_del_all( lv ); |
585 |
|
|
return TRUE; |
586 |
|
|
|
587 |
|
|
case ID_FILEMISC_OPEN: |
588 |
|
|
fm_add_opened_files( lv, dlg ); |
589 |
|
|
return TRUE; |
590 |
|
|
|
591 |
|
|
/* context menu entries */ |
592 |
|
|
case ID_FILECTX_ENCRYPT: send_cmd_id( dlg, ID_FILEMISC_ENCRYPT); break; |
593 |
|
|
case ID_FILECTX_DECRYPT: send_cmd_id( dlg, ID_FILEMISC_DECRYPT );break; |
594 |
|
|
case ID_FILECTX_SIGN: send_cmd_id( dlg, ID_FILEMISC_SIGN ); break; |
595 |
|
|
case ID_FILECTX_SIGNENC: send_cmd_id( dlg, ID_FILEMISC_SIGNENC );break; |
596 |
|
|
case ID_FILECTX_VERIFY: send_cmd_id( dlg, ID_FILEMISC_VERIFY ); break; |
597 |
|
|
case ID_FILECTX_WIPE: send_cmd_id( dlg, ID_FILEMISC_WIPE ); break; |
598 |
|
|
case ID_FILECTX_LIST: send_cmd_id( dlg, ID_FILEMISC_LIST ); break; |
599 |
|
|
case ID_FILECTX_SEND: send_cmd_id( dlg, ID_FILEMISC_SEND ); break; |
600 |
|
|
} |
601 |
|
|
break; |
602 |
|
|
} |
603 |
|
|
|
604 |
|
|
return FALSE; |
605 |
|
|
} /* file_manager_dlg_proc */ |
606 |
|
|
|
607 |
|
|
|
608 |
|
|
BOOL CALLBACK |
609 |
twoaday |
5 |
file_preferences_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
610 |
|
|
{ |
611 |
|
|
switch (msg) { |
612 |
|
|
case WM_INITDIALOG: |
613 |
|
|
CheckDlgButton (dlg, IDC_FPREFS_PROGRESS, reg_prefs.fm.progress? BST_CHECKED : BST_UNCHECKED); |
614 |
|
|
SetForegroundWindow (dlg); |
615 |
twoaday |
23 |
center_window (dlg, NULL); |
616 |
twoaday |
5 |
break; |
617 |
|
|
|
618 |
|
|
case WM_COMMAND: |
619 |
|
|
switch (LOWORD (wparam)) { |
620 |
|
|
case IDOK: |
621 |
|
|
reg_prefs.fm.progress = IsDlgButtonChecked (dlg, IDC_FPREFS_PROGRESS)? 1 : 0; |
622 |
|
|
set_reg_winpt_prefs (®_prefs); |
623 |
|
|
EndDialog (dlg, TRUE); |
624 |
|
|
break; |
625 |
|
|
|
626 |
|
|
case IDCANCEL: |
627 |
|
|
EndDialog (dlg, FALSE); |
628 |
|
|
break; |
629 |
|
|
} |
630 |
|
|
break; |
631 |
|
|
} |
632 |
|
|
|
633 |
|
|
return FALSE; |
634 |
|
|
} /* file_preferences_dlg_proc */ |
635 |
|
|
|
636 |
|
|
|
637 |
twoaday |
23 |
static void |
638 |
|
|
add_files_from_lv (HWND dlg, listview_ctrl_t lv) |
639 |
|
|
{ |
640 |
|
|
char fname[384+1]; |
641 |
|
|
int i; |
642 |
|
|
|
643 |
|
|
for (i = 0; i < listview_count_items (lv, 0); i++) { |
644 |
|
|
if (!listview_get_item_state (lv, i)) |
645 |
|
|
continue; |
646 |
|
|
listview_get_item_text (lv, i, 1, fname, sizeof (fname)-1); |
647 |
|
|
SendDlgItemMessage (dlg, IDC_SECDEL_FILES, LB_ADDSTRING, |
648 |
|
|
NULL, (WPARAM)(char *)fname); |
649 |
|
|
} |
650 |
|
|
} |
651 |
|
|
|
652 |
|
|
|
653 |
twoaday |
5 |
BOOL CALLBACK |
654 |
twoaday |
2 |
file_secdel_confirm_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
655 |
|
|
{ |
656 |
|
|
static secdel_confirm_s * ctx; |
657 |
|
|
|
658 |
|
|
switch (msg) { |
659 |
|
|
case WM_INITDIALOG: |
660 |
|
|
ctx = (struct secdel_confirm_s *)lparam; |
661 |
twoaday |
23 |
if (!ctx) |
662 |
|
|
BUG (NULL); |
663 |
|
|
add_files_from_lv (dlg, ctx->lv_files); |
664 |
twoaday |
2 |
break; |
665 |
|
|
|
666 |
|
|
case WM_COMMAND: |
667 |
|
|
switch( LOWORD( wparam ) ) { |
668 |
|
|
case IDYES: |
669 |
|
|
ctx->yes = 1; |
670 |
|
|
EndDialog( dlg, TRUE ); |
671 |
|
|
break; |
672 |
|
|
|
673 |
|
|
case IDNO: |
674 |
|
|
ctx->yes = 0; |
675 |
|
|
EndDialog( dlg, FALSE ); |
676 |
|
|
break; |
677 |
|
|
} |
678 |
|
|
break; |
679 |
|
|
} |
680 |
|
|
|
681 |
|
|
return FALSE; |
682 |
|
|
} /* file_secdel_confirm_dlg_proc */ |
683 |
|
|
|
684 |
|
|
|
685 |
|
|
static void |
686 |
|
|
wipe_cb (void * ctx, ui64 off, ui64 n) |
687 |
|
|
{ |
688 |
|
|
SendDlgItemMessage ((HWND)ctx, IDC_SPACE_PROGRESS, PBM_SETPOS, |
689 |
|
|
(WPARAM) (off*100/n), 0); |
690 |
|
|
SetDlgItemInt ((HWND)ctx, IDC_SPACE_OFF, (UINT)(off/1024), FALSE); |
691 |
|
|
SetDlgItemInt ((HWND)ctx, IDC_SPACE_N, (UINT)(n/1024), FALSE); |
692 |
|
|
} /* wipe_cb */ |
693 |
|
|
|
694 |
|
|
|
695 |
|
|
static DWORD WINAPI |
696 |
|
|
wipe_thread (void * ctx) |
697 |
|
|
{ |
698 |
|
|
thread_ctx_t a = (thread_ctx_t)ctx; |
699 |
|
|
int rc; |
700 |
|
|
|
701 |
|
|
rc = wipe_freespace (a->drive, &a->fd, wipe_cb, a->dlg); |
702 |
|
|
SetDlgItemText (a->dlg, IDC_SPACE_INFO, |
703 |
|
|
rc? _("Operation Status: Error") : _("Operation Status: Done.")); |
704 |
|
|
if (rc) |
705 |
|
|
msg_box (a->dlg, winpt_strerror (rc), _("Wipe Free Space"), MB_ERR); |
706 |
|
|
else |
707 |
|
|
MessageBeep (MB_OK); |
708 |
|
|
ExitThread (0); |
709 |
|
|
return 0; |
710 |
|
|
} /* wipe_thread */ |
711 |
|
|
|
712 |
|
|
|
713 |
|
|
static void |
714 |
|
|
fill_drive_combobox (HWND dlg) |
715 |
|
|
{ |
716 |
|
|
char buf[384], p[16]; |
717 |
|
|
int n, i, j = 0; |
718 |
|
|
|
719 |
|
|
n = GetLogicalDriveStrings (DIM (buf)-1, buf); |
720 |
|
|
while (j < n) { |
721 |
|
|
for (i = 0; buf[j] != '\0'; i++, j++) |
722 |
|
|
p[i] = buf[j]; |
723 |
|
|
p[i] = '\0'; |
724 |
|
|
j++; |
725 |
|
|
if (GetDriveType (p) != DRIVE_CDROM) |
726 |
|
|
SendDlgItemMessage (dlg, IDC_SPACE_DRIVES, CB_ADDSTRING, |
727 |
|
|
0, (LPARAM)(const char *)p); |
728 |
|
|
} |
729 |
|
|
SendDlgItemMessage (dlg, IDC_SPACE_DRIVES, CB_SETCURSEL, 0, 0); |
730 |
|
|
} /* fill_drive_combobox */ |
731 |
|
|
|
732 |
|
|
|
733 |
|
|
static void |
734 |
|
|
update_disc_stats (HWND dlg) |
735 |
|
|
{ |
736 |
|
|
ULARGE_INTEGER caller = {0}, total = {0}, free = {0}; |
737 |
|
|
char buf[128], drive[32], a_total[64] = {0}, a_free[64] = {0}; |
738 |
|
|
int idx; |
739 |
|
|
|
740 |
|
|
idx = SendDlgItemMessage (dlg, IDC_SPACE_DRIVES, CB_GETCURSEL, 0, 0); |
741 |
|
|
GetDlgItemText (dlg, IDC_SPACE_DRIVES, drive, DIM (drive)-1); |
742 |
|
|
if (GetDiskFreeSpaceEx (drive, &caller, &total, &free)) { |
743 |
|
|
_ui64toa (total.QuadPart/1024, a_total, 10); |
744 |
|
|
_ui64toa (free.QuadPart/1024, a_free, 10); |
745 |
|
|
} |
746 |
|
|
_snprintf (buf, DIM (buf)-1, _("Total Capacity: %12sk\n" |
747 |
|
|
"Free Space : %12sk"), a_total, a_free); |
748 |
|
|
SetDlgItemText(dlg, IDC_SPACE_DISC_INFO, buf); |
749 |
|
|
SetDlgItemInt (dlg, IDC_SPACE_OFF, 0, FALSE); |
750 |
|
|
SetDlgItemInt (dlg, IDC_SPACE_N, 0, FALSE); |
751 |
|
|
} /* update_disc_stats */ |
752 |
|
|
|
753 |
|
|
|
754 |
|
|
BOOL CALLBACK |
755 |
|
|
space_wipefrees_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
756 |
|
|
{ |
757 |
|
|
static HANDLE thread_hd = NULL; |
758 |
|
|
static thread_ctx_s ctx; |
759 |
|
|
char drive[32], * p; |
760 |
|
|
int idx; |
761 |
|
|
DWORD tid; |
762 |
|
|
|
763 |
|
|
switch (msg) { |
764 |
|
|
case WM_INITDIALOG: |
765 |
|
|
fill_drive_combobox (dlg); |
766 |
|
|
update_disc_stats (dlg); |
767 |
twoaday |
23 |
center_window (dlg, NULL); |
768 |
twoaday |
2 |
SetForegroundWindow (dlg); |
769 |
|
|
break; |
770 |
|
|
|
771 |
|
|
case WM_DESTROY: |
772 |
|
|
thread_hd = NULL; |
773 |
|
|
free_if_alloc (ctx.drive); |
774 |
|
|
memset (&ctx, 0, sizeof ctx); |
775 |
|
|
break; |
776 |
|
|
|
777 |
|
|
case WM_COMMAND: |
778 |
|
|
if (HIWORD (wparam) == CBN_SELCHANGE) |
779 |
|
|
update_disc_stats (dlg); |
780 |
|
|
switch (LOWORD (wparam)) |
781 |
|
|
{ |
782 |
|
|
case IDOK: |
783 |
|
|
idx = SendDlgItemMessage (dlg, IDC_SPACE_DRIVES, CB_GETCURSEL, 0, 0); |
784 |
|
|
if (idx != CB_ERR && !thread_hd) { |
785 |
|
|
GetDlgItemText (dlg, IDC_SPACE_DRIVES, drive, DIM (drive)-1); |
786 |
|
|
ctx.dlg = dlg; |
787 |
|
|
ctx.drive = m_strdup (drive); |
788 |
|
|
ctx.fd = NULL; |
789 |
|
|
thread_hd = CreateThread (NULL, 0, wipe_thread, &ctx, 0, &tid); |
790 |
|
|
} |
791 |
|
|
if (WaitForSingleObject (thread_hd, 0) == WAIT_OBJECT_0) { |
792 |
|
|
CloseHandle (thread_hd); |
793 |
|
|
thread_hd = NULL; |
794 |
|
|
EndDialog (dlg, TRUE); |
795 |
|
|
} |
796 |
|
|
break; |
797 |
|
|
|
798 |
|
|
case IDCANCEL: |
799 |
|
|
if (thread_hd) { |
800 |
|
|
WaitForSingleObject (thread_hd, 2000); |
801 |
|
|
TerminateThread (thread_hd, 1); |
802 |
|
|
CloseHandle (thread_hd); |
803 |
|
|
CloseHandle (ctx.fd); |
804 |
|
|
p = make_filename (ctx.drive, "temp_winpt.tmp", NULL); |
805 |
|
|
if (p && !file_exist_check (p)) |
806 |
|
|
unlink (p); |
807 |
|
|
free_if_alloc (p); |
808 |
|
|
} |
809 |
|
|
EndDialog( dlg, FALSE ); |
810 |
|
|
break; |
811 |
|
|
} |
812 |
|
|
break; |
813 |
|
|
} |
814 |
|
|
|
815 |
|
|
return FALSE; |
816 |
|
|
} /* space_wipefrees_dlg_proc */ |