Page 1 of 1

Infinite Loop with WNetEnumResource

Posted: 18. Jun 2009, 21:27
by Speed78
Hello,

I´ve written a software to detect all shares in the local network! In the Virtual Box 2.2.4 there exists the "Virtual Box Shared Folders". In this folder I have a share like "Downloads".

If I use the MS API function "WNetEnumResource" recusively the recusion will never end. This happens only with "Virtual Box Shared Folders". I think the reason is that something must be wrong with the "Virtual Box Shared Folders" implementation. The example of the code can be downloaded directly from the MSDN. Here is the link: http://msdn.microsoft.com/en-us/library ... S.85).aspx

Can some developer confirm this bug?

Kind regards

Rainer