title: How to read event viewer log in Windows XP in C#.net
body: <p>I'm using the below XML Query to read system "Turn on event" from event viewer in last 24 hours.</p>
  
  <pre><code>string query = "&lt;QueryList&gt;" +
                  "&lt;Query Id=\"0\" Path=\"System\"&gt;" +
                  "&lt;Select Path=\"System\"&gt;*[System[(EventID=6005) and TimeCreated[timediff(@SystemTime) &amp;lt;= 86400000]]]&lt;/Select&gt;" +
                  "&lt;/Query&gt;" +
                  "&lt;/QueryList&gt;";
  </code></pre>
  
  <p>It works well on Windows 7 and above but on Windows XP, I'm getting the below error:</p>
  
  <blockquote>
    <p>Error:Operation is not supported on this platform</p>
  </blockquote>
  
  <p>Can someone please help in reading the Turn On event in Windows XP from event viewer in C#.net?</p>