Writing to Windows EventLog

O

omoore

I am attempting to write to the Windows EventLog. I have a sample
script which does write to the log, but the error in the log says;

"The description for Event ID ( 1 ) in Source ( TFSM ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: This is a
test."

I have created the DLL that contains the error messages following the
example at http://www.le-berre.com/perl/msg_dll.html (using my own
data for the messages, of course). Here is TFSMMsg.mc file I used:

----------------------------------------------
MessageIdTypedef=DWORD
LanguageNames=(English=0x409:MSG00409)

MessageId=1
Severity=Warning
Facility=Application
SymbolicName=MSG_TEST
Language=English
%1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top