/[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 2 by twoaday, Mon Jan 31 11:02:21 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  
   
 extern "C" char * strsep (char * *,char const *);  
 const char *memistr (const char *buf, size_t buflen, const char *sub);  
 int gpg_md_hash_file (int mdalgo, const char *file, byte *digest, size_t *nlen);  
 int gpg_md_selftest (void);  
   
 #ifdef __cplusplus  
 }  
 #endif  
   
   
 #define stristr(buf, sub) memistr ((buf), strlen ((buf)), (sub))  
   
31  struct reminder_ctx_s {  struct reminder_ctx_s {
32      int msecs;      int msecs;
33  };  };
# Line 65  struct LOCK { Line 44  struct LOCK {
44  };  };
45    
46    
47  /*-- mapi --*/  /*-- wptMAPI.cpp --*/
48  int mapi_init (void);  int mapi_init (void);
49  int mapi_send_pubkey (const char * keyid, char * keyfile);  int mapi_send_pubkey (const char * keyid, char * keyfile);
50  int mapi_send_ascfile (char * ascfile);  int mapi_send_ascfile (char * ascfile);
51  void mapi_deinit (void);  void mapi_deinit (void);
52    
53    /*-- wptW32API.cpp --*/
54  char* make_filename( const char *path, const char *file, const char *ext );  char* make_filename( const char *path, const char *file, const char *ext );
55  int init_file_lock( LOCK *ctx, const char *file );  int init_file_lock( LOCK *ctx, const char *file );
56  void release_file_lock( LOCK *ctx );  void release_file_lock( LOCK *ctx );
# Line 81  size_t get_file_size( const char *fname Line 61  size_t get_file_size( const char *fname
61  int get_window_contents( HWND old_hwnd, curr_wnd_ctx *ctx, int *r_hotkey );  int get_window_contents( HWND old_hwnd, curr_wnd_ctx *ctx, int *r_hotkey );
62  int set_window_contents( HWND old_hwnd, curr_wnd_ctx *ctx );  int set_window_contents( HWND old_hwnd, curr_wnd_ctx *ctx );
63    
64  void center_window (HWND hwnd);  void center_window (HWND hwndChild, HWND hwndParent);
65  void center_window2 (HWND hwndChild, HWND style);  void center_window2 (HWND hwndChild, HWND parent, HWND style);
66  HANDLE window_reminder (struct reminder_ctx_s * ctx);  HANDLE window_reminder (struct reminder_ctx_s * ctx);
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 head_foot);  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,
78                       LPARAM param, LPCTSTR title, int title_id );                       LPARAM param, LPCTSTR title, int title_id );
79  int msg_box( HWND hwnd, const char *text, const char *title, int mode );  int msg_box( HWND hwnd, const char *text, const char *title, int mode );
80  int check_date( SYSTEMTIME *st );  int check_date( SYSTEMTIME *st );
81  const char * get_filename_dlg( HWND hwnd, int id, const char * title,  const char * get_filename_dlg( HWND hwnd, int id, const char * title,
82                                 const char * filter, const char * name );                                 const char * filter, const char * name );
83    const char* get_filesave_dlg (HWND hwnd, const char *title,
84                                  const char *filter, const char *name);
85    const char* get_fileopen_dlg (HWND hwnd, const char *title,
86                                  const char *filter, const char *name);
87  const char * get_folder_dlg( HWND hwnd, const char * title, const char * name );  const char * get_folder_dlg( HWND hwnd, const char * title, const char * name );
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, unsigned, unsigned),  
                            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) )
# Line 122  int wipe_freespace (const char * drive, Line 101  int wipe_freespace (const char * drive,
101  #define item_get_text_length(dlg, itm) \  #define item_get_text_length(dlg, itm) \
102          SendDlgItemMessage ((dlg), (itm), WM_GETTEXTLENGTH, 0, 0)          SendDlgItemMessage ((dlg), (itm), WM_GETTEXTLENGTH, 0, 0)
103    
 #endif /* WPT_W32_API_H */  
104    #endif /* WPT_W32_API_H */

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26