where to get the guid for SetupDiGetClassDevs

  bluetooth-lowenergy, gatt, windows

I work in windows ,winform ,and try to connect to a ble server with ble api,using c++

#define MYGUID  "{0850302A-B344-4fda-9BE9-90576B8D46F0}"
CLSIDFromString(TEXT(MYGUID), &svcGuid);
GUID deviceGUID = svcGuid;
hDevInfo = SetupDiGetClassDevs(&deviceGUID, NULL, NULL, DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);

but I don’t know what value should be for MYGUID ,I filled 0850302A-B344-4fda-9BE9-90576B8D46F0,it may be not right,where can i get the value? thanks.

Source: StackOverflow

LEAVE A COMMENT