home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1487 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.5 KB

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