CFP3+my program+rasdial.exe

Please help me put the axe.
I have a program for connect and disconnect VPN-connection. This program execute standard windows program rasdial.exe with necessary parameters.
Why I am update CFP to 3 version - this program was begin work not correct. With CFP 2.4 was no problem.
IMHO problem at transfer errorcod from rasdial.exe to my program.

Thank you!

P.S.:Sorry for my English.