Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WNetOpenEnum
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00185007
Message ID:
00187454
Vues:
46
>>>Win98
>>>Which DLL has the definitions of WNet API functions. I've tried using NETAPI32.DLL and I get no entry point found in .dll. I've only tried it with WNetOpenEnum so far. Also, where is a 'complete' list of Windows System API calls and where they are located? The MSDN disks only say windows95 or above and list the .h and .lib filenames but not the .dll and I don't have a developers reference. Maybe I'm looking in the wrong place?
>>
>>Use the WIN32API catchall; I believe the .DLL for this call is SVRAPI.DLL under Win9x, but I'm not 100% certain. WIN32API works for the WNet family calls, which use different .DLLs under different operating system and operating system versions.
>
>That works yup. Question about using clsheap. The parameter list for WNetOpenEnum calls for a pointer to a structure and another pointer to a handle. If I create a pointer to some block of memory thats fine. But the first structure is supposed to be a representation of a network container or null. If I pass .null. in the call I get a datatype mismatch. Anyway, if I pass it a pointer to some empty block of memory I get back an empty block of memory. Ever used that API call before?

Eric,

I've used both of these functions (WNetOpenEnum and WNetEnumResource) before. In fact, they were included in an article for FPA. Are you trying to retrieve the serevers that the user has connected to? If so, use RESOURCE_REMEMBERED and RESOURCE_DRIVES when you get the enumeration handle.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform