Platform SDK: RAS/Routing and RAS |
The operating system sends a WM_RASDIALEVENT message to a window procedure when a change of state event occurs during a RAS connection process, and a window has been specified to handle notifications of such events by using the notifier parameter of RasDial.
The two message parameters are equivalent to the parameters of the same names that are used with RasDialFunc and RasDialFunc1 callback functions.
WM_RASDIALEVENT rasconnstate = (RASCONNSTATE) wParam; // connection state about to be entered dwError = (DWORD) lParam; // error that may have occurred
RasDial sends this message with dwError set to zero upon entry to each connection state. If an error occurs within a state, the message is sent again for the state, this time with a nonzero dwError value.
If an application processes this message, it should return TRUE.
Windows NT/2000: Requires Windows NT 3.5 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Ras.h.
Remote Access Service (RAS) Overview, Remote Access Service Messages, RasDial, RasDialFunc, RasDialFunc1, RASCONNSTATE