Microsoft
Software
Hardware
Network
Question : WNetAddConnection2
The WnetAddConnection2 function fails in my program giving the error - ERROR_NO_NETWORK.
I have set up the machine as a member of an NT domain.
I am also able to run programs such as telnet, ftp and ping.
Is there some other network initialize function that I need
to call before calling WNetAddConnection2?
Answer : WNetAddConnection2
Your problem seem to be that you need to log on to an NT Domain.
Under the network properties, the NT Domain settings are under the properties for the Client For Microsoft Networks.
It makes sense that Client For Microsoft Networks should be the
primary logon if you want it to use these settings.
I am on a Win95 only network so I dont need to log on to a domain, and WnetAddConnection2 works perfectly and Im using Windows Logon.
When you use Windows Logon can you still see the network neighborhood correctly ? Does your computer find the browse master ?
A workaround you might want to try is getting TweakUI from microsoft and getting that to log in automatically for you.
You sould still then be able to have you network settings on
Client For Microsoft Networks.
Hope this helps.
Random Solutions
Finding Static IP Addresses in use on a network
New Application Server Instance
How to search specific domains?
Change xcopy timeout setting
New Sever Build
How do I expand wireless coverage, beyond a single access point's range, to encompass a large house (or office).
HTTP Status 500 error
MPLS to carry voice and data
How to Connect two or more computers wirlessly !!
My new MacBook Pro, running XP, will not see the wireless networks