I am switching from .net C # to QT C ++, and I am trying to use this Win32 function to emulate a disk in QT:
[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);
The code above is in C #, but I donβt know how to use them in QT, someone can give me an example, how to do it and how to use any Win32 API in QT?
source share