title: Where can I find a minimalistic WDM driver template with source code in it?
body: <p>I came across kernel-mode drivers with very little experience. Here's what I am trying to do:</p>
  
  <ul>
  <li>Have a user-mode application that loads the driver.</li>
  <li>Have the user-mode application write to it, in order to send it an instruction.</li>
  <li>Have the driver send the RDMSR instruction to the Intel chip.</li>
  <li>Return the results back to the user-mode application.</li>
  </ul>
  
  <p>I've read <a href="http://www.codeproject.com/Articles/9504/Driver-Development-Part-Introduction-to-Drivers" rel="nofollow">this article</a> that describes the different ways in which you can accomplish this behavior (Buffered I/O, Direct I/O, or Neither).</p>
  
  <p>My problem is this...the article has code that represents the way you would structure a WDM driver, and I was expecting to be able to create and then modify a default WDM project template with source code in it using the Windows Driver Kit, but when I downloaded the Windows Driver Kit (WDK), the only WDM driver template was completely blank and did not have any source code.</p>
  
  <p>Where can I find an example of a minimalistic WDM driver template with source code in it that uses <a href="http://msdn.microsoft.com/en-us/library/windows/hardware/ff546240%28v=vs.85%29.aspx" rel="nofollow">IoCreateDevice</a> to create a device object?</p>