SetupDiEnumDeviceInfo() fails with ERROR_NO_MORE_ITEMS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SetupDiEnumDeviceInfo() fails with ERROR_NO_MORE_ITEMS

跳至解决方案
1,483 次查看
yanz
Contributor III

Hi, all,

I'm working with i.MX RT1050 Evaluation Kit.

Trying to enumerate device info from my own application (with evkbimxrt1050_dev_dfu_lite_bm sample)  I get an error above.

hDeviceInfo = SetupDiGetClassDevs(
&guid,
NULL,
NULL,
DIGCF_PRESENT | DIGCF_DEVICEINTERFACE)

succeeded

What do I miss?.

 

标签 (1)
0 项奖励
回复
1 解答
1,470 次查看
yanz
Contributor III

Solved.

Should use

GUID  { 0x36fc9e60, 0xc465, 0x11cf, 0x80, 0x56, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 }

and not

GUID  { 0x88bae032, 0x5a81, 0x49f0, 0xbc, 0x3d, 0xa4, 0xff, 0x13, 0x82, 0x16, 0xd6 };

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,471 次查看
yanz
Contributor III

Solved.

Should use

GUID  { 0x36fc9e60, 0xc465, 0x11cf, 0x80, 0x56, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 }

and not

GUID  { 0x88bae032, 0x5a81, 0x49f0, 0xbc, 0x3d, 0xa4, 0xff, 0x13, 0x82, 0x16, 0xd6 };

0 项奖励
回复