title: Problem in first program in driver programming using Visual Studio 2010
body: <p>I am starting to learn this type of programming (driver programming) since a short while of the time.</p>
  
  <p>I started by using the traditional way <em>_</em>> I mean I only used WDK to bulid and compiled driver and was working properly with simple method of projects but I faced small problems in advanced when i wanted to start to expand my program or make a little developed one.</p>
  
  <p>So, I started using VS2010 in windows 7, I really faced a lot of problems because i do not have a background how can i used it as good as possible.</p>
  
  <p>Finally, I reach to a good point, this point is say (If you want to start with driver programming in VS2010, 1- you should install WDK 2- install VS2010 3- Enter the paths of WDK headers dirctories into VS2010 Dirctories to be compatiple. 4- Start tor create new project and go on.</p>
  
  <p>makefile project</p>
  
  <p>Finally, I am really not sure, it is a correct way or not I am just beginner.</p>
  
  <p>But I did like this and i found a good results</p>
  
  <pre><code>#include "wdm.h"  
  NTSTATUS DriverEntry( IN PDRIVER_OBJECT theDriverObject,  IN PUNICODE_STRING theRegistryPath ) 
   {     
       DbgPrint("Hello World!");    
       return STATUS_SUCCESS; 
    }  
  </code></pre>
  
  <p>And i got: </p>
  
  <pre><code>1&gt;------ Build started: Project: 1, Configuration: Debug Win32 ------ 1&gt;C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(37,5): warning MSB8005: The property 'NMakeBuildCommandLine' doesn't exist.  Skipping... ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== 
  </code></pre>
  
  <p>My question is:</p>
  
  <p><strong>Is this the correct way? How can I know this program is working properly? 
  Should I do something else to make my program work correctly in kernal mode?</strong></p>