Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with WNetAddConnection
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00205676
Message ID:
00205834
Vues:
16
>>Thanks George
>>
>>Only problem is I need to pass a User-ID I think. I am getting error 1326.
>>I know the machine logon id is not valid on the NT server I am connecting to. Is there a way to pass User Id as well?
>
>I hope that you've read my other post.
>
>The user's login name can be passed using WNetAddConnection2(). I think Ed Rauh's got a file in the download section (under Win32 and other APIs) that can handle calls to it. It's more difficult to use since it requires NETRESOURCE structure containing embedded pointers to strings. You might check there if what I suggested doesn't solve the problem.

Thanks for the plug, George. There's a demonstration of WNetAddConnection3 in my NETRESOURCE class (I think it's called DEMO_WNetAddConnection3.PRG) that uses CLSHEAP and the NETRESOURCE class.
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