Figure 1: Messages.mc — A text file that will be compiled into a message table for the Windows NT event logging service

; COPYRIGHT (c) 1997, TRIAD Systems, Inc. Permission is granted
; to use this code as long as this copyright notice appears in
; all source files
;---------------------------------------------------------------- 
; MessageIdTypedef=DWORD

SeverityNames=(Trace=0x0:SEVERITY_TRACE
               Warning=0x1:SEVERITY_WARNING
               Error=0x2:SEVERITY_ERROR
               Fatal=0x3:SEVERITY_FATAL
              )

FacilityNames=(Tester=258:FACILITY_TESTER)
LanguageNames=(English=0x409:Tester)
;//LanguageNames=(English=0x409:MSG00409)

;#pragma warning(disable:4005) //TURN OFF THE 'MACRO REDEFINITION' 
;                              //WARNING

;//---------------------------------------------------------------
;// MESSAGE DEFINITION SECTION
;
;// Each message definition begins with one or more of the 
;// following statements:
;
;// MessageId = [number|+number]
;// Severity = severity_name
;// Facility = facility_name
;// SymbolicName = name

MessageId=0x01
Severity=Fatal
Facility=Tester
SymbolicName=TEST_EXCEPTION
Language=English
%1 %n This is a test
..