why this ERROR_TOO_MANY_SEM_REQUESTS error comes

Hi all,
I am trying to enumerate the device by using following functions

Step 1) Issue SetupDiGetClassDevs(…)
Step 2) call SetupDiEnumDeviceInterfaces(…)
Step 3) call SetupDiGetDeviceInterfaceDetail (…)
Step 4) open the device with CreateFile(…)

when i am calling the first function the value that i am getting seems to be
correct but when i am calling second function then it always returning FALSE
and GetLastError() function call return 103 .

Can anyone explain what are the causes because of which i am getting this
error and how i can solve this so that i can enumerate devices.

Thanks
Nayan


Discover. Explore. Connect-Windows Live Spaces. Check out!
http://www.msnspecials.in/windowslive/livespaces.asp

Why not read the code? It is in the DDK. It is called devcon. Get the
executable and try it until you see what commands you need to use to get the
info you want, then you can see how it implements it. That is why we have a
kernel debugger, though you could do this with the Visual Studio debugger.

“nayan kumar” wrote in message news:xxxxx@ntdev…
> Hi all,
> I am trying to enumerate the device by using following functions
>
> Step 1) Issue SetupDiGetClassDevs(…)
> Step 2) call SetupDiEnumDeviceInterfaces(…)
> Step 3) call SetupDiGetDeviceInterfaceDetail (…)
> Step 4) open the device with CreateFile(…)
>
> when i am calling the first function the value that i am getting seems to
> be correct but when i am calling second function then it always returning
> FALSE and GetLastError() function call return 103 .
>
> Can anyone explain what are the causes because of which i am getting this
> error and how i can solve this so that i can enumerate devices.
>
> Thanks
> Nayan
>
> _________________________________________________________________
> Discover. Explore. Connect-Windows Live Spaces. Check out!
> http://www.msnspecials.in/windowslive/livespaces.asp
>
>