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 |
}; |
}; |
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, |
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) ) |