Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WNetOpenEnum
Message
From
13/02/1999 12:31:37
 
 
To
13/02/1999 12:13:03
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00185007
Message ID:
00187397
Views:
83
>Sincerelly, I don't understand it. MSDN says that hEnum is passed by val. That means that WNetEnumResource cannot change its value. Then, why passing it by ref? You declare it as passed by val and pass it by ref. Normally, VFP will take the address of your variable and pass it to the API function. How can it work? Does it work like this for you? IMO, it shouldn't work. ... I don't understand... Probably I'm missing something...

The code works; the value of hEnum probably never actually changes, but I haven't checked the value of the handle on return. It works this way, so I'm happy, but I agree, the value shouldn't be getting changed. I'll have to check my C code that I use in my own wrapper.

>
>Vlad
>
>>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
Reply
Map
View

Click here to load this message in the networking platform