error 259 дополнительные данные отсутствуют

I am trying to retrieve a set of display related interfaces and seem always to get the 259 error. Since I am very unexperienced with WinApi I could need some hints 🙂

I cannot see what I am doing wrong SetupDiGetClassDevs has no errors but everything I try regarding SetupDiEnumDeviceInterfaces returns 259. I’ve been trying both device setup as well the device interface GUID with no luck.

Edit: Clarification: bRtn returns 0 which means that SetupDiEnumDeviceInterfaces has failed. The 259 error means no more items but my system has two screens attached and since I am calling SetupDiGetClassDevs with no GUID I have expected to get at least my two screen items.

0023:05760293 xrRender_R4.dll
0023:057C5E2F xrRender_R4.dll
0023:057C54AE xrRender_R4.dll
0023:6CEDBD31 MSVCR120.dll, Concurrency::details::_SpinWait ::_NumberOfSpins()
0023:6CEDBD7E MSVCR120.dll, atoflt_l()
0023:6CEDBD8C MSVCR120.dll, atoflt_l()
0023:6CECBCAD MSVCR120.dll, finite()
0023:6CECAD30 MSVCR120.dll, _ValidateRead()
0023:6CECB727 MSVCR120.dll, sscanf()
0023:006FA915 xrCore.dll, CInifile::r_fcolor()
0023:05B460F4 xrGame.dll, CDialogHolder::UseIndicators()

[error][ 259] : Дополнительные данные отсутствуют.

Оцените статью