Path: 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 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