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