Re: Ras connection and Dialog box status by Jeff
Jeff
Mon Oct 04 20:55:02 CDT 2004
Good info. I would add that the application can do some things prior to the
RASCS_Connected notification. Trying to send data prior to getting that
connection would be fruitless, but the application could choose to abort the
connection attempt at any time prior to the RASCS_Connected notification by
calling RasHangUp. Also, if the connection attempt fails then
RASCS_Connected will never be indicated, instead the last indication sent to
the application will be RASCS_Disconnected. After that indication, the
application still must call RasHangUp to close the handle.
For examples of using RasDial asynchronously with a window and
notifications, look at the examples in:
public\common\oak\drivers\netsamp\rnaapp (has GUI will connection
progress dialog window)
public\common\oak\drivers\netsamp\rasdial (command line application with
hidden window)
--
Jeff Kelley
Microsoft / Windows CE Networking
This posting is provided AS IS with no warranties, and confers no rights.
"Ravi Ambros Wallau" <rwallau@springwireless.net> wrote in message
news:ezpfOLgqEHA.324@TK2MSFTNGP11.phx.gbl...
> When using the method RasDial in Pocket PC, the only possible way to
receive
> a connection progress notification from the system is defining a Window
> handle that will be used to receive all events generates from this
> operation. To do that, you must pass the value 0xFFFFFFFF in the
> NotifierType param and pass a valid window handle in the notifier param.
> When these values are successfully accepted in the RasDial method, the
> method return instantly. You must wait until the WM_RASDIALEVENT with
> RASCS_Connected state is set, or an error occours, to finalize the
> conneciton process.
>
> "Beuche" <bamby_81@orange.fr> wrote in message
> news:1f7ff11f.0410040210.203f1e1e@posting.google.com...
> >I want to know if it is possible to open the dialing dialog box when I
> > use RasDial.
> > Because this method does not return until the connection attempt has
> > completed successfully or failed. So I can't show the status of the
> > connection.
>
>