Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Urgent:How to find other computer names in local domain
Message
From
20/10/1998 08:53:11
 
 
To
20/10/1998 02:32:07
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00147487
Message ID:
00148443
Views:
25
>>But as per the msdn library documentation you cannot use that function on the Windows 95 . Alternatively you can use "mpr.dll" with functions WNetEnumResource() and wnetopenenum()
>
>You're right. Sorry...
>
>>, but it has some complications. like sending a NETRESOURCE structure by reference. Is it possible in VFP sending structures like that ?
>
>Yes. You can simulate almost any structure using a string. To send it by reference, just send the corresponding string by reference. The problem is that this structure contains pointers and, in order to get the strings pointed by those pointers, you'll need something like my Pointers class.
>
>> How can I use C code directly from Foxpro . If you have any example pl. send it. and also tell the additional files that I should have to do that.
>
>You cannot use C code directly. But you can build a DLL wrapper in C/C++. It is must easier to deal with these functions form C/C++ than from VFP.
>
>I played with these functions about 6 months ago. I will dig on my computer at work and if I still have that test program, I will send it to you. It's in C++.

He's definitely going to need either your pointers class or a wrapper - there are several embedded pointers used in a NETRESOURCE structure.
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