title: Logging in Windows Event Log in Unmanaged C++
body: <p>I know that I can use <code>ReportEvent</code> method to write event logs in windows. But it seems to me that this method is useful for logging events prior to Windows Vista and 7 event log changes. For example, I don't think I can create a custom application log, set sessionID, ... using this library. </p>
  
  <p>My other option will be using the <code>System::Diagnostics</code> methods like <code>WriteEntry</code>. This one has the features that I'm looking for, but the problem is that I can only use it in /clr mode.</p>
  
  <p>My question is: is there any unmanaged C++ library for logging events to Windows 7?</p>
  
  <p>Cheers,
  Reza++</p>