Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WNetOpenEnum
Message
De
13/02/1999 12:31:37
 
 
À
13/02/1999 12:13:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00185007
Message ID:
00187397
Vues:
70
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform