Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files to a password protected shared folder
Message
From
25/03/2000 21:54:24
 
 
To
25/03/2000 21:42:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00348073
Message ID:
00350467
Views:
27
>Could you please let me see a code sample. I've solved (hope) how to build string in order to emulate a C structure to pass it as parameter. However I'm completely out about the terminology and concepts used to describe the structure components like dwScope, dwDisplayType, etc.
>

There's a sample implementation of WNetAddConnection3() in my NETRESOURCE class which can be downloaded from here on UT. You'll also need a copy of CLSHEAP, also downloadable from UT. I'd advise using the WSH component becuase of the other things that are gained from installing the WSH, not just the COM objects, which add a large number of capabilities that can be accessed via COM in VFP, but also scripting capabilities which can help automate many installation and installation maintenance related tasks. The amount of code involved in fully implementing the capabilities added through the various WSH COM components is considerable, and is far easier to deal with, in a far less OS-dependent fashion, via the COM objects.

You might want to ask Paul Frost for assitance here, he's made it clear that my code is not adequately or properly documented and my coding style is not up to his standards, and I'm sure his grasp and understanding of such things is infinitely superior to mine. OTOH, I've never seen a line of code or a comment of his, so YMMV.

>
>Thanks in advance and regards
>
>Oscar Corte
>
>
>>>Thanks a lot for your answer, it was very helpful. However, since I see there are at least two approaches do accomplish this, I'd like to ask if both methods are available into the win 9x environment (without having to install any adds, my development machine has lots of things installe). In other words I would appreciate any advise about pros and cons on both methods, API calls and the scripting object.
>>>
>>>Thanks in advance.
>>>
>>
>>The Win32 API calls do not require any add-on components, but do require writing and debugging significant code; the WSH components are simple COM objects and do not rquire any knowledge of how the underlying APIs work.
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