/[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 33 by twoaday, Tue Oct 25 07:46:20 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  enum {  #include "wptCrypto.h"
25      FILE_OPEN = 0,  #include "wptUtil.h"
     FILE_SAVE = 1  
 };  
   
 enum {  
     WIPE_MODE_SIMPLE    = 0,  
     WIPE_MODE_DOD       = 1,  
     WIPE_MODE_GUTMANN   = 2,  
     WIPE_MODE_FAST      = 3,  
 };  
   
 #ifdef __cplusplus  
 extern "C" {  
 #endif  
26    
27  extern "C" char * strsep (char * *,char const *);  #define FILE_OPEN 0
28  const char *memistr (const char *buf, size_t buflen, const char *sub);  #define FILE_SAVE 1
 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))  
29    
30  struct reminder_ctx_s {  struct reminder_ctx_s {
31      int msecs;      int msecs;
# Line 65  struct LOCK { Line 43  struct LOCK {
43  };  };
44    
45    
46  /*-- mapi --*/  /*-- wptMAPI.cpp --*/
47  int mapi_init (void);  int mapi_init (void);
48  int mapi_send_pubkey (const char * keyid, char * keyfile);  int mapi_send_pubkey (const char * keyid, char * keyfile);
49  int mapi_send_ascfile (char * ascfile);  int mapi_send_ascfile (char * ascfile);
50  void mapi_deinit (void);  void mapi_deinit (void);
51    
52    /*-- wptW32API.cpp --*/
53  char* make_filename( const char *path, const char *file, const char *ext );  char* make_filename( const char *path, const char *file, const char *ext );
54  int init_file_lock( LOCK *ctx, const char *file );  int init_file_lock( LOCK *ctx, const char *file );
55  void release_file_lock( LOCK *ctx );  void release_file_lock( LOCK *ctx );
# Line 81  size_t get_file_size( const char *fname Line 60  size_t get_file_size( const char *fname
60  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 );
61  int set_window_contents( HWND old_hwnd, curr_wnd_ctx *ctx );  int set_window_contents( HWND old_hwnd, curr_wnd_ctx *ctx );
62    
63  void center_window (HWND hwnd);  void center_window (HWND hwndChild, HWND hwndParent);
64  void center_window2 (HWND hwndChild, HWND style);  void center_window2 (HWND hwndChild, HWND parent, HWND style);
65  HANDLE window_reminder (struct reminder_ctx_s * ctx);  HANDLE window_reminder (struct reminder_ctx_s * ctx);
66  void set_active_window (HWND dlg);  void set_active_window (HWND dlg);
67  void reset_active_window (void);  void reset_active_window (void);
68    
69  void set_menu_text( HMENU menu, int m_uid, const char *text );  void set_menu_text (HMENU menu, int m_uid, const char *text);
70  void set_menu_state( HMENU menu, int m_uid, int state );  void set_menu_text_bypos (HMENU menu, int pos, const char *text);
71  char* get_clip_text( HWND hwnd );  void set_menu_state (HMENU menu, int m_uid, int state);
72    
73    char* get_clip_text (HWND hwnd);
74  int set_clip_text (HWND hwnd, const char *text, int nbytes);  int set_clip_text (HWND hwnd, const char *text, int nbytes);
75  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);
76  int dialog_box_param( HINSTANCE hinst, LPCTSTR name, HWND parent, DLGPROC fnc,  int dialog_box_param( HINSTANCE hinst, LPCTSTR name, HWND parent, DLGPROC fnc,
77                       LPARAM param, LPCTSTR title, int title_id );                       LPARAM param, LPCTSTR title, int title_id );
78  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 );
79  int check_date( SYSTEMTIME *st );  int check_date( SYSTEMTIME *st );
80  const char * get_filename_dlg( HWND hwnd, int id, const char * title,  const char * get_filename_dlg( HWND hwnd, int id, const char * title,
81                                 const char * filter, const char * name );                                 const char * filter, const char * name );
82    const char* get_filesave_dlg (HWND hwnd, const char *title,
83                                  const char *filter, const char *name);
84    const char* get_fileopen_dlg (HWND hwnd, const char *title,
85                                  const char *filter, const char *name);
86  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 );
87  char * m_strdup( const char *str );  char * m_strdup( const char *str );
88  const char * strtimestamp (long timestamp);  const char * strtimestamp (long timestamp);
89    
 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);  
90    
91  #define listbox_add_string(lb, string) \  #define listbox_add_string(lb, string) \
92      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 100  int wipe_freespace (const char * drive,
100  #define item_get_text_length(dlg, itm) \  #define item_get_text_length(dlg, itm) \
101          SendDlgItemMessage ((dlg), (itm), WM_GETTEXTLENGTH, 0, 0)          SendDlgItemMessage ((dlg), (itm), WM_GETTEXTLENGTH, 0, 0)
102    
 #endif /* WPT_W32_API_H */  
103    #endif /* WPT_W32_API_H */

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26