Jump to content
Forum²

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...