🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1465

Next problem: (de-)Installing a hook.

#1465
From: Lynn Wallace
Date: Sat, 02 Mar 1991 23:18
14 lines
1186 bytes
I need to count messages in my application.  So I SetWindowsHook() and can
watch my filter function execute (it doesn't do anything but pass everything
on if Windows wants it to, via the nCode parameter).  But when I try to 
UnhookWindowsHook() it creates a general protection fault.  I believe I've
place the DefHookProc address in fixed memory; it's declared static global at
the top of my program, and I've change the .def to FIX my code and data.

Another case of the documentation being insufficient...

-- 
Lynn Wallace			   |I am not an official representative of
Evans and Sutherland Computer Corp.| <- E&S.  Or for that matter, unofficial.
Salt Lake City, UT 84108	   |Internet: lwallace@javelin.sim.es.com
			War not make one great! -- Yoda
Technical Details
Message-ID: <1991Mar2.231844.23647@javelin.es.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!orca!javelin.es.com!lwallace

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!orca!javelin.es.com!lwallace
From: lwallace@javelin.es.com (Lynn Wallace)
Newsgroups: comp.windows.ms.programmer
Subject: Next problem:  (de-)Installing a hook.
Message-ID: <1991Mar2.231844.23647@javelin.es.com>
Date: 2 Mar 91 23:18:44 GMT
Organization: Evans & Sutherland Computer Corp., Salt Lake City, Utah
Lines: 14