Actually I am building it to support all platforms. If i use windows.h. It will not run on the linux machine.. So It should use the QT functionalities to perform this. Any help to find the bus type.
Actually I am building it to support all platforms. If i use windows.h. It will not run on the linux machine.. So It should use the QT functionalities to perform this. Any help to find the bus type.
As you can find in previous answers, there is no way to do that using current version of Qt. You need to use platform-specific methods, which means -So It should use the QT functionalities to perform this. Any help to find the bus type.
NO WAY TO FIND THE BUS TYPE IN QT, USE PLATFORM SPECIFIC API TO DO THIS
Correct. This means that you need to use something like:If i use windows.h. It will not run on the linux machine.
or something similiar to distinguish between different operating systems you want to support.Qt Code:
#ifdef _WIN_32_ #include "my_bus_type_win.h" #else #include "my_bus_type_lin.h" #endifTo copy to clipboard, switch view to plain text mode
Again - you need to implement this on your own. No Qt.
the STORAGE_ADAPTER_DESCRIPTOR contains the bus type that can be used to find the bus type. That is present in the ntdddisk.h . but it returns some garbage values
for the bus type variable.
and? How is this Qt related? ntdddisk.h is part of Win32 API, not Qt.
Is there any way to get it from the system information about the bus type in QT???
I'm closing the topic, we're not getting anywhere here.
Bookmarks