Thanks for the quick response. I am now able to create events. There are getting logged under Event Viewer -> Symantec Endpoint Protection Manager.
This is because I want a custom target log which is 'Symantec Endpoint Protection Manager' rather than logging under Application.
For this to work, I have created following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\ Symantec Endpoint Protection Manager\
and have mapped following values in it:
CategoryMessageFile: points to Win32EventLogAppender.dll
EventMessageFile: points to Win32EventLogAppender.dll
However, the events that get logged still show following error message. Can you please advise what's going wrong here? Also, can you please let me know how to provide a specific event id for a event through the code?
"The description for Event ID ( 4096 ) in Source ( Symantec Endpoint Protection Manager ) cannot be found."