try the following InternetAutodial Causes the modem to automatically dial the default Internet connection.BOOL InternetAutodial( DWORD dwFlags, HWND hwndParent );InternetAutodialHangup Disconnects an automatic dial-up connection.BOOL InternetAutodialHangup( DWORD dwReserved );
a readymade sample is available in MSDN SAMPLE: DIALUP.EXE: Dial-Up Networking Using Windows 95 Shell Article ID: Q153750 http://support.microsoft.com/support/kb/articles/q153/7/50.asp
InternetAutodial
Causes the modem to automatically dial the default Internet connection.BOOL InternetAutodial(
DWORD dwFlags,
HWND hwndParent
);InternetAutodialHangup
Disconnects an automatic dial-up connection.BOOL InternetAutodialHangup(
DWORD dwReserved
);
SAMPLE: DIALUP.EXE: Dial-Up Networking Using Windows 95 Shell
Article ID: Q153750
http://support.microsoft.com/support/kb/articles/q153/7/50.asp