home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!axion!apricot!marcusj
- From: marcusj@apricot.co.uk (Marcus Jenkins)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Screen Saver needs Keyboard and Mouse Trap that works
- Message-ID: <1992Aug25.145842.14408@apricot.co.uk>
- Date: 25 Aug 92 14:58:42 GMT
- Organization: Apricot Computers Limited
- Lines: 28
-
- I am looking for a code fragment that hooks *all* keyboard and
- mouse activity in Windows Standard and Enhanced modes in
- Windows 3.0 *and* 3.1. I have a fragment that works with 3.0,
- using SetWindowsHook(WH_CALLWNDPROC, lpMyFilter) in a DLL, but it
- seems to miss out on keystokes entered in Windows 3.1 Write,
- for example. This, as you may have guessed, is for Yet
- Another Screen Saver, that must work with all released
- versions of Windows 3.x. I don't really fancy trapping
- the hardware interrupts if there is an API way to do this.
-
- Looking in the Windows 3.1 API manual, I see there is a
- SetWindowsHookEx() API function, is this what I need?
- If so, does that mean that Windows 3.1 Write, for example,
- gets its keyboard input in a different way from the 3.00x
- version?
-
- Thanks in advance.
-
- Please mail me.
-
- _ _ _
- ' ) ) ) Internet: marcusj@apricot.co.uk
- / / / __. __ _. . . _ UUCP: marcusj@apricot.uucp
- / ' (_(_/|_/ (_(__(_/_/_)_ If all else fails from US, try:
- Marcus Jenkins apricot!marcusj@relay.EU.net
- Tel: +44 21 472 3002 Fax: +44 21 471 2935
- Disclaimer: Anything I wrote above is, of course, my own view and
- does not in any way represent my employer.
-