1 |
/* wptVersion.h - WinPT version handling |
/* wptVersion.h - WinPT version handling |
2 |
* Copyright (C) 2000-2005 Timo Schulz |
* Copyright (C) 2000-2005, 2008-2009 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
|
* |
|
|
* You should have received a copy of the GNU General Public License |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
15 |
*/ |
*/ |
16 |
#ifndef WPT_VERSION_H |
#ifndef WPT_VERSION_H |
17 |
#define WPT_VERSION_H |
#define WPT_VERSION_H |
18 |
|
|
19 |
/* Application name */ |
/* Application name */ |
20 |
#define PGM_NAME PACKAGE_NAME |
#define PGM_NAME "WinPT" |
21 |
|
|
22 |
/* Application version */ |
/* Application version */ |
23 |
#define PGM_VERSION PACKAGE_VERSION |
#define PGM_VERSION "1.5.0" |
24 |
#define PGM_DATE "("__DATE__")" |
#define PGM_DATE "("__DATE__")" |
25 |
|
|
26 |
/* Full package version string */ |
/* Full package version string */ |
32 |
/*-- WinPT.cpp --*/ |
/*-- WinPT.cpp --*/ |
33 |
extern HINSTANCE glob_hinst; /* Global HINSTANCE for tray window */ |
extern HINSTANCE glob_hinst; /* Global HINSTANCE for tray window */ |
34 |
extern HWND glob_hwnd; /* Global HWND for tray window */ |
extern HWND glob_hwnd; /* Global HWND for tray window */ |
|
extern int admin_user; |
|
35 |
extern int debug; /* Global debug mode */ |
extern int debug; /* Global debug mode */ |
36 |
extern int scard_support; /* Smartcard support available? */ |
extern int scard_support; /* Smartcard support available? */ |
37 |
extern int gpg_read_only; /* GPG read-only keyring access? */ |
extern int gpg_read_only; /* GPG read-only keyring access? */ |
38 |
|
extern int emulate_utf8_bug; /* Emulate the utf8 encoding failure for pwds*/ |
39 |
|
|
40 |
extern char gpgver[]; /* Contains gpg version (3 bytes) */ |
extern char gpgver[]; /* Contains gpg version (3 bytes) */ |
41 |
|
|
45 |
#endif |
#endif |
46 |
BOOL PTD_initialize (void); |
BOOL PTD_initialize (void); |
47 |
void PTD_delete (void); |
void PTD_delete (void); |
|
int PTD_jpg_show (HWND, POINT*, LPCSTR); |
|
48 |
HWND PTD_get_curr_hwnd (void); |
HWND PTD_get_curr_hwnd (void); |
49 |
int PTD_is_used (void); |
int PTD_is_used (void); |
50 |
BOOL PTD_keyb_send (UINT *keys, UINT n_keys); |
BOOL PTD_keyb_send (UINT *keys, UINT n_keys); |
52 |
} |
} |
53 |
#endif |
#endif |
54 |
|
|
55 |
|
int jpg_show (HWND, POINT*, LPCSTR); |
56 |
|
|
57 |
/*-- wptMainProc.cpp --*/ |
/*-- wptMainProc.cpp --*/ |
58 |
LRESULT CALLBACK winpt_main_proc (HWND hwnd, UINT msg, WPARAM wparam, |
LRESULT CALLBACK winpt_main_proc (HWND hwnd, UINT msg, WPARAM wparam, |
59 |
LPARAM lparam); /* Global main procedure */ |
LPARAM lparam); /* Global main procedure */ |