
WNetGetNetworkInformation
I'm working on a Win95 application to determine if a network connection
exists. If the network connection doesn't exist the application will
dial-out to establish a remote connection. I have been struggling to
find a way to do this.
Does anyone have any sample code on how to use the
WNetGetNetworkInformation function?
Will the dwStatus returned in the NETINFOSTRUCT give a WN_NO_NETWORK
value when there is no network connection? and will this change to
WN_SUCCESS after a dial-up connection is established?