This is the mail archive of the
mailing list for the Cygwin project.
Re: WSASocketA returns WSAEPROVIDERFAILEDINIT
- To: Craig Nelson <craig at reversion dot ca>
- Subject: Re: WSASocketA returns WSAEPROVIDERFAILEDINIT
- From: egor duda <deo at logos-m dot ru>
- Date: Tue, 1 May 2001 19:37:34 +0400
- CC: egor duda <cygwin-apps at cygwin dot com>
- Organization: deo
- References: <firstname.lastname@example.org><20010430215921.M24200@cygbert.vinschen.de><email@example.com> <3AEED4C8.5E7B8D7@reversion.ca>
- Reply-To: egor duda <cygwin-apps at cygwin dot com>
Tuesday, 01 May, 2001 Craig Nelson firstname.lastname@example.org wrote:
CN> Thanks, I'll try that out.. Do you think I can set the SYSTEMROOT
CN> in my own call to _spawnlpe() or should I apply the patch to the
CN> cygwin source and rebuild the DLL?
no, there's no need to rebuild the dll. since spawnlpe just pass
environment "as is", it's caller job to set it up. normally, you only
need to pass 'PATH', 'SHELL', 'USER', 'HOME' variables, but as it
turned out, to get winsock working, you need to pass 'SYSTEMROOT' too.
i've just scanned system32/ directory. MSWSOCK.DLL contains
'%SystemRoot%\system32\msafd.dll' string. i think that's the reason.
btw, many other dlls use %SystemRoot%, and, supposedly may break in
some subtle ways if it's empty.
Egor. mailto:email@example.com ICQ 5165414 FidoNet 2:5020/496.19