DWORD RasDial(
LPRASDIALEXTENSIONS lpRasDialExtensions,
// pointer to function extensions data
LPTSTR lpszPhonebook,
// pointer to full path and filename of phone-book file
LPRASDIALPARAMS lpRasDialParams,
// pointer to calling parameters data
DWORD dwNotifierType,
// specifies type of RasDial event handler
LPVOID lpvNotifier,
// specifies a handler for RasDial events
LPHRASCONN lphRasConn
// pointer to variable to receive connection handle
);
用这个函数,当返回值是0的时候就是拨通了,否则就是没通。