Hi,
The Win32 API related issue is out of the scope of the Storage High Availability topic in the community forum. It's recommended to ask in the Microsoft Q&A forum and select the Windows API tag.
问题背景:
1、我们使用SetupDiGetClassDevs(&GUID_DEVINTERFACE_STOAGEPORT, NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE))接口用来枚举存储类设备的接口。
2、然后在根据handle来进一步来获取设备路径来选择我们自己的raid卡(目前能枚举出来的设备是三个,其中有两个sata AHCI控制器+我们的raid卡)。
现在我们跑脚本压测发现SetupDiGetClassDevs这个接口返错(概率较小,下一次几秒后调用就恢复成功了),错误码为6(The Handle is invalid),请问:
1、什么时候这个接口会报这个错误码呢?
2、我理解,即使不接入raid卡,那么这个接口应该也是会枚举出系统的两个sata AHCI控制器才对,不会报无效的句柄呢?
锁定的问题。 此问题已从 Microsoft 支持社区迁移。 你可投票决定它是否有用,但不能添加评论或回复,也不能关注问题。 为了保护隐私,对于已迁移的问题,用户个人资料是匿名的。
Hi,
The Win32 API related issue is out of the scope of the Storage High Availability topic in the community forum. It's recommended to ask in the Microsoft Q&A forum and select the Windows API tag.