Event Logging In Windows Server 2008

vipinvjayan

New member
Joined
May 6, 2010
Messages
1
Location
India
Hi all,

I am using Windows Server 2008 R2. I want to add a new event log in Application Log with current windows session ID.
Means, I have working in multi-user mode and so, many users will connect to my PC & run application provided. So when an error occurred during a client session, my application will log error in Application Log, but now Session ID column of event viewer is blank. I need to put current Windows Server Session ID in that column.

I can get session ID using ProcessIdToSessionId() API. But I don't know who to add that in Windows Server Event log.
I know event log is changed compared with previous versions of Windows.

Please help me.

Thanks,
Vipin Vijayan.
 
Back
Top