Journal Hooks and CompatibilityLast reviewed: November 2, 1995Article ID: Q106717 |
The information in this article applies to:
SUMMARYJournal hooks are used to record and play back events, such as keyboard and mouse events. Journal hooks are system-wide hooks that take control of all user input, and therefore should be used as little as possible.
MORE INFORMATIONNote that Windows NT does not ship with a Recorder application, as Windows 3.1 does. Therefore, it may be desirable to create an application that can play back macros recorded under Windows 3.1. However, there are a number of different problems with the Windows NT implementation of journaling that make it difficult to use macros recorded under Windows 3.1. The EVENTMSG structures recorded under Windows 3.1 that hold keystrokes do not play back under Windows NT. They must be modified, because the journal playback hook parses a scan code out of the EVENTMSG structure differently than the Windows 3.1 journal record hook put it in the structure. Under Windows 3.1, paramH specifies the repeat count. Under Windows NT, there is no way to specify a repeat count; it is always assumed to be 1. For more information on hooks, please see the Hooks Overview in Volume 1 of the Win32 "Programmer's Reference" and the article "Win32 Hooks" included in the MSDN CD #5.
|
Additional reference words: 3.10 3.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |