title: Checking for windows events in c#, can't find this 2003 event
body: <p>I read somewhere (and it is true), that windows logs eventID 2003 when you plug in a USB key, and 2102 when you unplug it. (These events do occur on my machine)</p>
  <p>this won't work, I can't figure out why, and where to look (another log ?)</p>
  <pre><code>using System.Diagnostics.Eventing.Reader;
  class Program
  {
      static void Main(string[] args)
      {
          string query = &quot;*[System/EventID=2003]&quot;;
          EventLogQuery eventsQuery = new EventLogQuery(&quot;System&quot;, PathType.LogName, query);
          try
          {            
              EventLogReader logReader = new EventLogReader(eventsQuery);
              for (EventRecord eventdetail = logReader.ReadEvent(); eventdetail != null; eventdetail = logReader.ReadEvent())
              {
                  Console.WriteLine(eventdetail.FormatDescription()); // explore the event
              }
          }
          catch (EventLogNotFoundException e)
          {
              Console.WriteLine(&quot;Error while reading the event logs&quot;);
              return;
          }
          Console.WriteLine(&quot;Done&quot;);
          Console.ReadLine();
      }
  }
  </code></pre>
  <p>I can't seem to find any event.
  using</p>
  <pre><code>string query = &quot;*[System/Provider/@Name=\&quot;Microsoft-Windows-DriverFrameworks-UserMode\&quot;]&quot;;
  </code></pre>
  <p>I do hav some events, thow not the 2003 I am after</p>