I would suggest the following.

1) Open the dialup dialog
2) Use this neat Spy++ tool which comes with VC++ to find out class name and window caption
3) Put a FindWindow() call in your program with class name and window caption as parameter