Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WNetOpenEnum
Message
From
13/02/1999 04:59:15
 
 
To
12/02/1999 23:56:28
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00185007
Message ID:
00187353
Views:
57
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform