1) Software Using:
Microsoft Windows Vista
Microsoft Visual Studio 2008 (VS9)
2) .mc file sample (Syslog.mc @{Resource Files}):
;
SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS
Informational=0x1:STATUS_SEVERITY_INFORMATIONAL
Warning=0x2:STATUS_SEVERITY_WARNING
Error=0x3:STATUS_SEVERITY_ERROR
)
;
FacilityNames=(System=0x0:FACILITY_SYSTEM
Runtime=0x2:FACILITY_RUNTIME
Stubs=0x3:FACILITY_STUBS
Io=0x4:FACILITY_IO_ERROR_CODE
)
;
MessageIdTypedef=DWORD
;
LanguageNames=(English=0x409:MSG00409)
;
MessageId=0x1
Severity=Error
Facility=Runtime
SymbolicName=MSG_SYSLOG
Language=English
%1
.
3) .mc file Property Pages:
4) .mc Property Pages/Command Line:
mc -v -s -U -r "$(InputDir)." -h "$(InputDir)." -x "$(InputDir)." "$(InputPath)"
rc -v -r "$(InputDir)$(InputName).rc"
link -dll -noentry -machine:X86 -out:"$(OutDir)\$(InputName).dll" "$(InputDir)$(InputName).RES"
5) .mc Property Pages/Outputs:
$(InputName).h
$(InputName).rc
MSG00409.bin
$(InputName).RES
$(InputName).dll
PS: See Also:
RegisterEventSource Function
ReportEvent Function
Reporting Events
%%
No comments:
Post a Comment