synchronous dialing doesn't allow you to cancel the dialling.
for asyn dialling you need
callback function and it must be
in a standard module and you will need to compile your app to PCode.
Alternatively you can subclass your form, and in the RasDial call specify
your window's handle. You will probably need to register the RasDial
message. I used subclassing methode.