/[winpt]/trunk/Src/wptMainProc.cpp
ViewVC logotype

Diff of /trunk/Src/wptMainProc.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 120 by twoaday, Wed Nov 30 10:22:00 2005 UTC revision 121 by twoaday, Mon Dec 12 11:19:56 2005 UTC
# Line 46  Line 46 
46  #include "wptCardEdit.h"  #include "wptCardEdit.h"
47  #include "wptCrypto.h"  #include "wptCrypto.h"
48    
 extern HWND activ_hwnd;  
49  static int cmd = 0;  static int cmd = 0;
50  static int wipe_contents = 0;  static int wipe_contents = 0;
51    
# Line 87  elgamal_warn_dlg_proc (HWND dlg, UINT ms Line 86  elgamal_warn_dlg_proc (HWND dlg, UINT ms
86  }  }
87    
88    
 /* @unused  
 static int  
 cleanup_tmp_files (void)  
 {  
     struct _finddata_t dat;  
     char tmp[384];  
     long hd;  
   
     if (GetTempPath (sizeof (tmp)-1, tmp) == FALSE ||  
         SetCurrentDirectory (tmp) == FALSE) {  
         winpt_errmsg ("GetTempPath", 0);  
         return WPTERR_GENERAL;  
     }  
     hd = _findfirst ("gpgmeOUT*", &dat);  
     if (hd == -1)  
         return 0;  
     do {  
         secure_unlink (dat.name, WIPE_MODE_SIMPLE);  
     } while (_findnext (hd, &dat) == 0);  
     _findclose (hd);  
     return 0;  
 }  
 */  
   
   
89  /* Dialog box procedure to confirm to delete the clipboard contents. */  /* Dialog box procedure to confirm to delete the clipboard contents. */
90  static BOOL CALLBACK  static BOOL CALLBACK
91  confirm_delclipboard_dlg (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)  confirm_delclipboard_dlg (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)
# Line 122  confirm_delclipboard_dlg (HWND dlg, UINT Line 96  confirm_delclipboard_dlg (HWND dlg, UINT
96          SetDlgItemText (dlg, IDC_CONFDELCLIP_BRAIN, _("&Remember the answer"));          SetDlgItemText (dlg, IDC_CONFDELCLIP_BRAIN, _("&Remember the answer"));
97          SetDlgItemText (dlg, IDC_CONFDELCLIP_INFO, _("Do you want to delete the contents from the clipboard?"));          SetDlgItemText (dlg, IDC_CONFDELCLIP_INFO, _("Do you want to delete the contents from the clipboard?"));
98          SetDlgItemText (dlg, IDYES, _("&Yes"));          SetDlgItemText (dlg, IDYES, _("&Yes"));
99          SetDlgItemText (dlg, IDNO, _("&No"));            SetDlgItemText (dlg, IDNO, _("&No"));
100          center_window (dlg, NULL);          center_window (dlg, NULL);
101          SetForegroundWindow (dlg);          SetForegroundWindow (dlg);
102          break;          break;
# Line 311  secret_key_available (void) Line 285  secret_key_available (void)
285    
286  /* Load the Card Manager with the current card. */  /* Load the Card Manager with the current card. */
287  static void  static void
288  load_smartcard (void)  load_card_manager (void)
289  {  {
290      gpg_card_t card;      gpg_card_t card;
291    
# Line 321  load_smartcard (void) Line 295  load_smartcard (void)
295                            GetDesktopWindow (), card_edit_dlg_proc,                            GetDesktopWindow (), card_edit_dlg_proc,
296                            (LPARAM)card,                            (LPARAM)card,
297                            _("Card Edit"), IDS_WINPT_CARD_EDIT);                            _("Card Edit"), IDS_WINPT_CARD_EDIT);
298          gpg_card_release (card);          gpg_card_release (card);
         card = NULL;      
299      }      }
300  }  }
301    
# Line 587  winpt_main_proc (HWND hwnd, UINT msg, WP Line 560  winpt_main_proc (HWND hwnd, UINT msg, WP
560              break;              break;
561    
562          case ID_WINPT_CARD:          case ID_WINPT_CARD:
563              load_smartcard ();              load_card_manager ();
564              break;              break;
565                            
566          case ID_WINPT_EDIT:          case ID_WINPT_EDIT:

Legend:
Removed from v.120  
changed lines
  Added in v.121

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26