#include <Windows.h>#include <SetupAPI.h>#include <devguid.h>DEFINE_GUID(GUID_DEVCLASS_DISPLAY,0x4d36e968,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18); HDEVINFO hDevInfo; hDevInfo =SetupDiGetClassDevs(&GUID_DEVCLASS_DISPLAY ,NULL, NULL, DIGCF_PRESENT|DIGCF_ALLCLASSES );
C++ (Qt)#define INITGUID // << Это добавь#include <Windows.h>#include <SetupAPI.h>#include <devguid.h> HDEVINFO hDevInfo = SetupDiGetClassDevs(&GUID_DEVCLASS_DISPLAY ,NULL, NULL, DIGCF_PRESENT|DIGCF_ALLCLASSES );
C++ (Qt)#define INITGUID #include <qt_windows.h>#include <setupapi.h> DEFINE_GUID(GUID_BLUETOOTHLE_DEVICE_INTERFACE, 0x781aee18, 0x7733, 0x4ce4, 0xad, 0xd0, 0x91, 0xf4, 0x1c, 0x67, 0xb5, 0x92);DEFINE_GUID(BTH_LE_ATT_BLUETOOTH_BASE_GUID, 0x00000000, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
C++ (Qt)while(!asleep()) sheep++;