44 |
HINSTANCE glob_hinst; /* global instance for the dialogs */ |
HINSTANCE glob_hinst; /* global instance for the dialogs */ |
45 |
HWND glob_hwnd; /* global window handle for the dialogs */ |
HWND glob_hwnd; /* global window handle for the dialogs */ |
46 |
int scard_support = 0; |
int scard_support = 0; |
47 |
|
int disable_hook = 0; |
48 |
int debug = 0; |
int debug = 0; |
49 |
int gpg_read_only = 0; |
int gpg_read_only = 0; |
50 |
char gpgver[3]; |
char gpgver[3]; |
420 |
PostMessage (hwnd, WM_DESTROY, 0, 0); |
PostMessage (hwnd, WM_DESTROY, 0, 0); |
421 |
} |
} |
422 |
return 0; |
return 0; |
423 |
} |
} |
424 |
|
|
425 |
|
/* KLUDGE: test if the hooking is causing problems with some AV programs */ |
426 |
|
if (cmdline && stristr (cmdline, "--disable-hook")) |
427 |
|
disable_hook = 1; |
428 |
|
|
429 |
|
|
430 |
log_debug("check PTD and GPGME version"); |
log_debug("check PTD and GPGME version"); |
431 |
get_file_version ("winpt.exe", &ver[0], &ver[1], &ver[2], &ver[3]); |
get_file_version ("winpt.exe", &ver[0], &ver[1], &ver[2], &ver[3]); |