🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer
Article #24

MsgHook - why always called twice ?

#24
From: Povl H. Pedersen
Date: Sat, 16 Sep 1995 00:00
16 lines
1012 bytes
Why is my MsgHook always called twice with apparently the same messages ?
(WN_KEYDOWN, WM_CHAR and probably all others as well)

I get this problem under 3.11, Win95, and WinNT.

I am using a 16-bit DLL from Authorware in case it matters.
I am sure I have only installed the MsgHook once.
I install it by:

hMyHook = SetWindowsHook( WH_GETMESSAGE, gHProc );
where gHProc is the result of a MakeProcInstance();

-- 
Win95 - Where do you want to go today ? Well, not to a 2 year late OS
Only DOS is worse than Win95.
Technical Details
Message-ID: <pope-1609952110380001@pope.edunet.dk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f49cb,df7d12b719615721,start
X-Google-Attributes: gidf49cb,public
X-Google-Thread: 1105ff,df7d12b719615721,start
X-Google-Attributes: gid1105ff,public
From: pope@edunet.dk (Povl H. Pedersen)
Subject: MsgHook - why always called twice ?
Date: 1995/09/16
Message-ID: <pope-1609952110380001@pope.edunet.dk>
X-Deja-AN: 110251526
organization: edu!
newsgroups: comp.os.ms-windows.programmer,bit.listserv.authorware