Article View: comp.os.os2.programmer
Article #1782JournalPlaybackHook
From: Mikael Wahlgren
Date: Fri, 06 Nov 1992 02:00
Date: Fri, 06 Nov 1992 02:00
34 lines
2010 bytes
2010 bytes
I have been trying to use the JournalPlaybackHook with OS/2 2.0 for quite some days, but haven't had much success yet. I am writing a 16-bit DLL for my system hook procedure, but I am a little unsure about the parameters in this procedure and what they are used for. My OS/2 1.3 programming reference says the hook procedure should be declared as JournalPlaybackHook(hab, qmsg, skip) while the OS/2 2.0 programming reference says JournalPlaybackHook(hab, skip, qmsg) (note the different order). Which one is the correct one? Could someone explain how to use the "skip" parameter? I am totally bewildered by this parameter, and don't understand how to step forward in my "Journal". If I from my main program issue a WinReleaseHook while the JournalPlaybackHook is serving a system hook call, is the hook call terminated directly, or am I only preventing any MORE| hook calls to be performed? If I want to insert characters (key-presses) into the system queue, what is the correct method? What is the different between a WM_CHAR and a WM_VIOCHAR message? I have a hook procedure that "almost" works. I can send any characters (including accelerated keys) to any application I want, but whenever I send several keys fast, the receiving application (the one that should finally receive the WM_CHAR messages) is terminated without any message at all. I would appriciate any help. I think hooks are too briefly documented in the programming references. Does anyone know of any good litterature covering this? Mikael Wahlgren
Technical Details
Message-ID:
<d9mikael.721015227@dtek.chalmers.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!chalmers.se!news.chalmers.se!dtek.chalmers.se!d9mikaelShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!chalmers.se!news.chalmers.se!dtek.chalmers.se!d9mikael From: d9mikael@dtek.chalmers.se (Mikael Wahlgren) Newsgroups: comp.os.os2.programmer Subject: JournalPlaybackHook Message-ID: <d9mikael.721015227@dtek.chalmers.se> Date: 6 Nov 92 02:00:27 GMT Sender: news@news.chalmers.se Organization: Chalmers University of Technology, Gothenburg Sweden Lines: 34 Nntp-Posting-Host: hackes.dtek.chalmers.se