How to define these references in my cpp file.?
How to define these references in my cpp file.?
This is a Qt-focussed forum, not a general Windows API programming forum.
Ntddstor.h declares GUID_DEVINTERFACE_DISK.
SetupDiGetClassDevs is in setupapi.dll
I have linked the setupapi library in qmakespec. -lsetupapi and included initguid.h in my cpp file. Now the undefined reference issue has been solved.
Bookmarks