This procedure outlines how to connect with a RAS server.
If the number is in the phone book, you can retrieve it with RasEnumEntries.
Phone book entries are stored in the registry.
If the application needs to receive messages from RAS, the messages must be sent to an HWND. There is no support for callback functions.
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: