Tech Support > Microsoft Windows > Drivers > SetupDiEnumDeviceInterfaces Problem
SetupDiEnumDeviceInterfaces Problem
Posted by Dennis Burns on September 20th, 2004


Calls to SetupDiEnumDeviceInterfaces fail to locate my device for which I've
created a class GUID.

Here's a sample call, with the index set to 0, just for test.
SP_DEVICE_INTERFACE_DATA ifdata;
ifdata.cbSize = sizeof( SP_DEVICE_INTERFACE_DATA );
BOOL Found = SetupDiEnumDeviceInterfaces(info, NULL, &m_InterfaceGUID,
0, &ifdata);

Note that info is a handle that was sucessfully returned by a call to
SetupDiGetClassDevs

Found evaluates to zero and GetLastError returns 0x00000103 ("No more data
is available").

I'm scratching my head, wondering why.

Can someone suggest a cause of the problem?
Thanks,
Dennis


Posted by Dennis Burns on September 20th, 2004


I should have stated that my device shows up in the Device manage, and my
class guid seems to be properly registered.

"Dennis Burns" <dburns@rtessentials.com> wrote in message
news:%23q4HaSxnEHA.3392@TK2MSFTNGP15.phx.gbl...


Posted by arsadrani on October 7th, 2004


I am facing same problem. Did you solve it? If yes then please let me know