home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3891 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!chx400!bernina!neptune!rofische
  2. From: rofische@iiic.ethz.ch (Roman Fischer)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Hints: Hooks
  5. Message-ID: <1992Jul30.131349.8261@neptune.inf.ethz.ch>
  6. Date: 30 Jul 92 13:13:49 GMT
  7. Sender: news@neptune.inf.ethz.ch (Mr News)
  8. Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH)
  9. Lines: 25
  10. Originator: rofische@c13
  11. Nntp-Posting-Host: c13
  12.  
  13. Hi there,
  14.  
  15. after trying around with hooks for nearly a week now, I found the following
  16. points that seem to be important:
  17.  
  18. 1. If you want a hook in a system queue, your application must have it's
  19.    own msg-loop
  20.  
  21. 2. The Example in the Microsoft Programers Reference for OS/2 1.3 Vol. 1 is
  22.    wrong. The hook-procedure has 3 arguments, as defined before the example.
  23.  
  24. 3. If your hook is in the system queue, the procedure can't access any global
  25.    variables (I may be wrong on this one, but it seems that the hook gets
  26.    called in the context of the process how will receive the msg).
  27.  
  28. I'm currently writting a hook for the system input queue (HK_INPUT), and I'll
  29. post it here as soon as possible (one or two days...).
  30.  
  31. bye                 Roman
  32.  
  33. -- 
  34. ----------------------------------------------
  35. INTERNET: rofische@iiic.ethz.ch
  36. DECNET:   14LBS::PSI%47931149420::ROFISCHE (?)
  37. ----------------------------------------------
  38.