SAMPLE: Windows Journal Hooks Sample Source CodeLast reviewed: February 15, 1996Article ID: Q37138 |
The information in this article applies to:
SUMMARYJOURNAL is a file in the Software Library that contains sample code to demonstrate the use of the journal hooks WH_JOURNALRECORD and WH_JOURNALPLAYBACK. The JOURNAL archive file contains the source to APP.EXE; WNDPROC.C is one of the source files. The APP.EXE application serves only one purpose; it illustrates how to call the dynamic-link library (DLL) that performs all of the journaling work. The WNDPROC.C application module contains calls to the DLL to record and play back messages. One of the source modules for the DLL, JOURNAL.C, contains all the code required to create DIARY.BIN, a file of messages. The messages in DIARY.BIN can be played back at a later time. The DIARY.BIN file is overwritten each time the user chooses Record On from the menu. The JOURNAL code can serve as the basis of a "hands off" application demonstration. The application demonstrating itself can call the high- level functions in the DLL to play each event. The DIARY.BIN file is also included in the JOURNAL archive to demonstrate using journal hooks. To demonstrate playing the contents of a DIARY.BIN file, select Play from the menu. Download JOURNAL.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
|
Additional reference words: 3.00 SetWindowsHook 3.10 softlib JOURNAL.EXE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |