Network start up
Weran into a problem about TCP/IP NT service program development .we set the NT service program auto start when windows 2008 starting up. Butwe found whenwe called gethostbyname() , it returned local IP address (127.0.0.1) and whenwe called WNetUseConnection() at that time in the program, it failed by a code:51 error(it should be said: Windows cannot find the network path). But whenwe start it manually after windows start, it seems no problem. So is this due to the start sequence of windows service? for that time when starting up windows, network component is not ready, so it caused the problem. And after windows start up, the network component is ready, so it becomes no problem. Isnt it? And if we still want to make the service program auto-start when windows starts up without this error, how should we do? What API should we use to know if the network is ready at the time windows start up?any help appreciated.
April 29th, 2008 7:32pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics