Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message is sent by the operating system (OS) to a window procedure when a change of state event occurs during a Remote Access Service (RAS) connection process and a window has been specified to handle notifications of such events by using the notifierparameter of RasDial.

The two message parameters are equivalent to the parameters of the same names that are used with RasDialFuncand RasDialFunc1callback functions.

Syntax

WM_RASDIALEVENT 
rasconnstate = (RASCONNSTATE) 
wParam; 
dwError = (DWORD) 
lParam; 

Parameters

rasconnstate

Equivalent to the rasconnstateparameter of the RasDialFuncand RasDialFunc1callback functions. This parameter specifies a RASCONNSTATEenumerator value that indicates the state that the RasDialRAS connection process is about to enter.

dwError

Equivalent to the dwErrorparameter of the RasDialFuncand RasDialFunc1callback functions. A nonzero value indicates the error that has occurred and zero indicates that no error has occurred.

RasDialsends this message with dwErrorset 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 dwErrorvalue.

Return Value

An application should return TRUE if it processes this message.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

RasDial
RASCONNSTATE