Using RAS

This procedure outlines how to connect with a RAS server.

    To use RAS
  1. Determine which phone number to call.

    If the number is in the phone book, you can retrieve it with RasEnumEntries.

  2. Establish a connection with RasDial.
    1. When the session is complete, terminate it with RasHangup.

If an HWND was specified in the RasDial call, it receives a WM_RASDIALEVENT message every time a change-of-state event occurs. The wParam and lParam values carry the following information: