[svn] GPGol - r96 - trunk/src
svn author twoaday
cvs at cvs.gnupg.org
Fri Sep 16 10:22:48 CEST 2005
Author: twoaday
Date: 2005-09-16 10:22:43 +0200 (Fri, 16 Sep 2005)
New Revision: 96
Modified:
trunk/src/watcher.cpp
Log:
Use global hinstance.
Modified: trunk/src/watcher.cpp
===================================================================
--- trunk/src/watcher.cpp 2005-09-15 21:17:52 UTC (rev 95)
+++ trunk/src/watcher.cpp 2005-09-16 08:22:43 UTC (rev 96)
@@ -7,12 +7,12 @@
#include "mymapitags.h"
#include "gpgmsg.hh"
#include "util.h"
+#include "intern.h"
/* Exchange callback context to retrieve the last message. */
static LPEXCHEXTCALLBACK g_cb = NULL;
-/* DLL instance and the hook handle. */
-static HINSTANCE g_hinst = NULL;
+/* The current hook handle. */
static HHOOK g_cbt_hook = NULL;
/* MAPI message and storage handle. */
@@ -47,7 +47,7 @@
w = find_message_window2 (child);
if (w)
{
- log_debug ("%s: watcher found message window.\n", __func__);
+ log_debug ("%s: watcher found message window: %p\n", __func__, w);
return w;
}
@@ -117,7 +117,7 @@
{
if (g_cbt_hook != NULL)
return 0;
- g_cbt_hook = SetWindowsHookEx (WH_CBT, cbt_proc, g_hinst, 0);
+ g_cbt_hook = SetWindowsHookEx (WH_CBT, cbt_proc, glob_hinst, 0);
if (!g_cbt_hook)
{
log_debug ("%s: SetWindowsHookEx failed ec=%d\n",
More information about the Gnupg-commits
mailing list