rt,我想拨的是WAN微型端口(pppoe),请各位高手指教

解决方案 »

  1.   

    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
    );
      

  2.   

    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