INFO: Event Logging Message Source Build and Install ProcessLast reviewed: September 2, 1997Article ID: Q166903 |
The information in this article applies to:
SUMMARYThe LOGGING sample, found in the Win32 Software Development Kit (SDK) under the Q&A sample tree, provides a full example of Event Logging in Microsoft Windows NT. This article gives an overview of the process to create and install a message source for Event Viewer.
MORE INFORMATIONThe LOGGING sample that demonstrates Event Logging is found in the Win32 SDK in:
\mstools\samples\q_a\loggingThe logging sample includes a DLL and an EXE. The DLL provides the source for event log messages and the EXE demonstrates reporting events in the log and displaying log messages. The following is the procedure to create and install a message source:
The following diagram illustrates the build process and the components:
+------+ +------+
| .mc |--> mc.exe -->| .bin |-----+
| | | | .rc |-----+
+------+ +------+ | .h |
| +------+ |
| | +------+
| / |
| / \
+------+ v v v
| .res |<--------- rc.exe your app source
| |
+------+
| +------+
+-----> link.exe ----> | .dll |
| |
+------+
It is up to you to include the .H file in your application that posts
events into the event log with ReportEvent. The .DLL is the module that
Event Viewer loads to associate strings with the event IDs it reads from
the event log.
|
Additional query words: events evtlog eventlog logging
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |