Asynchronous Operations (Windows Embedded CE 6.0)
1/6/2010
When RasDial is invoked as an asynchronous operation, the function returns immediately. In asynchronous mode, the RasDial call must specify a window handle that RAS uses to inform the client application when the connection operation state changes or an error occurs.
RAS makes its asynchronous notifications in the context of the thread that made the RasDial call. Therefore, the calling thread must not terminate until the connection is established or an error occurs. As is the case when in synchronous mode, the client application can safely terminate when the connection is established, and it must close the connection if an error occurs.