INFO: Event Logging Message Source Build and Install Process |
Q166903
The 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.
The LOGGING sample that demonstrates Event Logging is found in the Win32 SDK in:
\mstools\samples\q_a\logging
The 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.
HKEY_LOCAL_MACHINE\
SYSTEM\
CurrentControlSet\
Services\
EventLog\
Application
+------+ +------+
| .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
Keywords : kbprogramming kbEventLog kbKernBase kbGrpDSKernBase
Issue type : kbinfo
Technology : kbAudDeveloper kbWin32sSearch kbWin32API
|
Last Reviewed: October 23, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |