SetupDiGetClassDescription 返回 FALSE,设置错误 0xE0000206
过去几天我一直在Windows 2003 上使用SetupApi,并且看到了一堆我没有预料到的错误。 例如,如果我将 GUID_NULL
传递给 SetupDiGetClassDescription
,它会返回 FALSE,并且 GetLastError()
返回 0xE0000206
。
GUID_NULL 来自 SetupDiEnumDeviceInfo
; 我不是故意这样做的。
我还看到错误 0xE0000209
。 这些“0xE”错误值在哪里声明、定义或记录?
I've been playing with the SetupApi on Windows 2003 over the last couple of days, and I'm seeing a bunch of errors I'm not expecting. For example, if I pass GUID_NULL
to SetupDiGetClassDescription
, it returns FALSE and GetLastError()
returns 0xE0000206
.
The GUID_NULL came from SetupDiEnumDeviceInfo
; I'm not doing this deliberately.
I've also seen error 0xE0000209
. Where are these "0xE" error values declared, defined or documented?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,它们位于
SetupAPI.h
中,但经过伪装。0xE0000206
是ERROR_INVALID_CLASS
:...而
0xE0000209
是ERROR_INVALID_REG_PROPERTY
:(并且在 WinNT.h 中).. .
0xC | 0x2 是
0xE
。It turns out that they're in
SetupAPI.h
, but disguised.0xE0000206
isERROR_INVALID_CLASS
:...and
0xE0000209
isERROR_INVALID_REG_PROPERTY
:(and, in WinNT.h)...
0xC | 0x2
is0xE
.