I need to report an event that comes under critical category. Rest is working fine but i am having problems with using the ReportEvent for posting "critical" category event. Code sample is something like:
const WORD LM_NT_LOG_CATEGORY_CRITICAL = 1;
WORD category;
category = LM_NT_LOG_CATEGORY_UNKNOWN;
ReportEvent(hEventSource,logLevel,category, event,NULL,2,0,
(const TCHAR**) &lpszStrings,
NULL);
In Windows Event Viewer for this particular event i see a "1" in Category column instead of "critical". Can anyone please help me?