SetupDiGetClassDevs is only supported on Windows 10 Desktop.
For Windows 10 Universal (Windows 10 Iot Core -> Raspberry Pi) CM_Get_Device_ID_List / CM_Get_Device_Interface_List needs to be used.
https://msdn.microsoft.com/zh-tw/library/windows/hardware/ff551069(v=vs.85).aspx