title: Using Win32 API in QT for Windows
body: <p>i'm migrating from .net C# to QT C++, and I'm trying to use this Win32 function to emulate drive in QT:</p>
  
  <pre><code>[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
  private static extern bool DefineDosDevice(int flags, string devname, string path);
  
  [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
  private static extern int QueryDosDevice(string devname, StringBuilder buffer, int bufSize);
  </code></pre>
  
  <p>The code above is in C# but i'm have no idea how to use them in QT, someone can give me an example how to do this and how to use any Win32 API in QT?</p>