>The handle must be passed by val and not by ref to WNetEnumResource.
>
>Vlad
>
>>hEnum is declarted as INTEGER @ in WNetOpenEnum, and a numeric variable should be passed by reference in the call to WNetOpenEnum to retrieve the assigned handle. You can then use the returned value for hEnum to WNetEnumResource, passing again by reference in the call to WNetEnumResource, so that you get back the adjusted handle after each WNBetEnumResource call
I know - take a look at the declaration in message 185193, where I posted the setup for WNetEnumResource. I meant pass by reference in VFP's terms - the parameter is passed @hEnum in the call to WNetEnumResource, so that the value will come back to VFP; VFP actually copies the value between calls.