title: erreur : C1083: Cannot open include file: 'wdm.h': No such file or directory
body: <p>I am trying to build this code with qtcreator, my point is to create a new device using <code>RtlInitUnicodeString</code> and <code>IoCreateDevice</code> </p>
  
  <pre><code>#define _WIN32_WINNT 0x0501
  
  #include &lt;string&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;iostream&gt;
  #include &lt;tchar.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;qdebug.h&gt;
  
  #include &lt;wdm.h&gt;
  #include &lt;Ntifs.h&gt;
  #include &lt;windows.h&gt;
  
  #define BUFSIZE MAX_PATH
  
  int main(  )
  {
      BOOL bFlag;
      TCHAR Buf[BUFSIZE];     // temporary buffer for volume name
  
  
      //create a new device
  
      NTSTATUS    ntStatus = STATUS_SUCCESS;
      UNICODE_STRING      deviceNameUnicodeString;
      UNICODE_STRING      deviceLINKNameUnicodeString;
      int i;
  
      RtlInitUnicodeString(&amp;deviceNameUnicodeString, L"\\Device\\Harddisk0\\Partition3");
      RtlInitUnicodeString(&amp;deviceLINKNameUnicodeString, L"\\DosDevices\\I:");
  
  
      ntStatus = IoCreateDevice ( theDriverObject,
                                  0, // For driver extension
                                  &amp;deviceNameUnicodeString,
                                  FILE_DEVICE_UNKNOWN,
                                  FILE_DEVICE_SECURE_OPEN,
                                  FALSE,
                                  &amp;g_MyDeviceI);
  
  
      IoCreateSymbolicLink (&amp;deviceLINKNameUnicodeString, &amp;deviceNameUnicodeString);
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>erreur : C1083: Cannot open include file: 'wdm.h': No such file or directory
  </code></pre>
  
  <p>and here is my .pro file</p>
  
  <pre><code>SOURCES += \
      main.cpp \
      VolumeCreationWind.cpp \
      ChangePassWd.cpp \
      PasswordMountWind.cpp \
      MainWindow.cpp \
      DeviceInfos.cpp
  
  HEADERS += \
      VolumeCreationWind.h \
      PasswordMountWind.h \
      ChangePassWd.h \
      MainWindow.h \
      DeviceInfos.h \
  
  
  FORMS +=
  CONFIG += release
  INCLUDEPATH += C:\WinDDK\7600.16385.1\inc\ddk
  INCLUDEPATH += C:\WinDDK\7600.16385.1\inc\wdf\kmdf\1.9
  </code></pre>
  
  <p>1) How can I fix the error of include path</p>
  
  <p>2) can any one explain for me the use of <code>IoCreateDevice</code> and how create <code>theDriverObject</code></p>
  
  <p>Any help please!!!!
  Thanks in advance.</p>