home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6279 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.9 KB

  1. Path: sparky!uunet!mcsun!sunic!chalmers.se!news.chalmers.se!dtek.chalmers.se!d9mikael
  2. From: d9mikael@dtek.chalmers.se (Mikael Wahlgren)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: JournalPlaybackHook
  5. Message-ID: <d9mikael.721015227@dtek.chalmers.se>
  6. Date: 6 Nov 92 02:00:27 GMT
  7. Sender: news@news.chalmers.se
  8. Organization: Chalmers University of Technology, Gothenburg Sweden
  9. Lines: 34
  10. Nntp-Posting-Host: hackes.dtek.chalmers.se
  11.  
  12. I have been trying to use the JournalPlaybackHook with OS/2 2.0 for
  13. quite some days, but haven't had much success yet.   I am writing a
  14. 16-bit DLL for my system hook procedure, but I am a little unsure
  15. about the parameters in this procedure and what they are used for.
  16.  
  17. My OS/2 1.3 programming reference says the hook procedure should be
  18. declared as JournalPlaybackHook(hab, qmsg, skip) while the OS/2 2.0
  19. programming reference says JournalPlaybackHook(hab, skip, qmsg)
  20. (note the different order).  Which one is the correct one?
  21.  
  22. Could someone explain how to use the "skip" parameter?  I am
  23. totally bewildered by this parameter, and don't understand how
  24. to step forward in my "Journal".
  25.  
  26. If I from my main program issue a WinReleaseHook while the 
  27. JournalPlaybackHook is serving a system hook call, is the 
  28. hook call terminated directly, or am I only preventing any MORE|
  29. hook calls to be performed?
  30.  
  31. If I want to insert characters (key-presses) into the system queue,
  32. what is the correct method?  What is the different between a WM_CHAR
  33. and a WM_VIOCHAR message?
  34.  
  35. I have a hook procedure that "almost" works.  I can send any characters
  36. (including accelerated keys) to any application I want, but whenever I
  37. send several keys fast, the receiving application (the one that should
  38. finally receive the WM_CHAR messages) is terminated without any message
  39. at all.
  40.  
  41. I would appriciate any help.  I think hooks are too briefly documented
  42. in the programming references.  Does anyone know of any good litterature
  43. covering this?
  44.  
  45. Mikael Wahlgren
  46.