/[winpt]/trunk/Include/wptW32API.h
ViewVC logotype

Diff of /trunk/Include/wptW32API.h

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

revision 29 by twoaday, Wed Oct 12 10:04:26 2005 UTC revision 30 by twoaday, Sat Oct 22 10:17:59 2005 UTC
# Line 21  Line 21 
21  #ifndef WPT_W32_API_H  #ifndef WPT_W32_API_H
22  #define WPT_W32_API_H  #define WPT_W32_API_H
23    
24    #include "wptCrypto.h"
25    
26  enum {  enum {
27      FILE_OPEN = 0,      FILE_OPEN = 0,
28      FILE_SAVE = 1      FILE_SAVE = 1
29  };  };
30    
 enum {  
     WIPE_MODE_SIMPLE    = 0,  
     WIPE_MODE_DOD       = 1,  
     WIPE_MODE_GUTMANN   = 2,  
     WIPE_MODE_FAST      = 3,  
 };  
   
 #ifdef __cplusplus  
 extern "C" {  
 #endif  
   
 int gpg_md_hash_file (int mdalgo, const char *file, byte *digest, size_t *nlen);  
 int gpg_md_selftest (void);  
   
 #ifdef __cplusplus  
 }  
 #endif  
   
   
31  struct reminder_ctx_s {  struct reminder_ctx_s {
32      int msecs;      int msecs;
33  };  };
# Line 84  HANDLE window_reminder (struct reminder_ Line 67  HANDLE window_reminder (struct reminder_
67  void set_active_window (HWND dlg);  void set_active_window (HWND dlg);
68  void reset_active_window (void);  void reset_active_window (void);
69    
70  void set_menu_text( HMENU menu, int m_uid, const char *text );  void set_menu_text (HMENU menu, int m_uid, const char *text);
71  void set_menu_state( HMENU menu, int m_uid, int state );  void set_menu_text_bypos (HMENU menu, int pos, const char *text);
72  char* get_clip_text( HWND hwnd );  void set_menu_state (HMENU menu, int m_uid, int state);
73    
74    char* get_clip_text (HWND hwnd);
75  int set_clip_text (HWND hwnd, const char *text, int nbytes);  int set_clip_text (HWND hwnd, const char *text, int nbytes);
76  int set_clip_text2 (HWND hwnd, const char *text, int nbytes, int as_footer);  int set_clip_text2 (HWND hwnd, const char *text, int nbytes, int as_footer);
77  int dialog_box_param( HINSTANCE hinst, LPCTSTR name, HWND parent, DLGPROC fnc,  int dialog_box_param( HINSTANCE hinst, LPCTSTR name, HWND parent, DLGPROC fnc,
# Line 103  const char * get_folder_dlg( HWND hwnd, Line 88  const char * get_folder_dlg( HWND hwnd,
88  char * m_strdup( const char *str );  char * m_strdup( const char *str );
89  const char * strtimestamp (long timestamp);  const char * strtimestamp (long timestamp);
90    
 int rename_unlink (const char *path);  
 int secure_unlink (const char *path, const int mode);  
 void secure_unlink_set_cb (void (*cb)(void *, const char *, int, int, int),  
                            void *cb_value);  
 int wipe_freespace (const char * drive, HANDLE *r_fd,  
                     void (*cb)(void *, unsigned __int64, unsigned __int64),  
                     void * cb_value);  
91    
92  #define listbox_add_string(lb, string) \  #define listbox_add_string(lb, string) \
93      SendMessage( (lb), LB_ADDSTRING, 0, (LPARAM)(LPCSTR)(string) )      SendMessage( (lb), LB_ADDSTRING, 0, (LPARAM)(LPCSTR)(string) )

Legend:
Removed from v.29  
changed lines
  Added in v.30

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26