Need to Create a VPN Client.

Hi All,
Is it possible to create a VPN client using setupdi api’s similar
to creating a network connection(VPN) manually.
this will consist of providing a ip,password with default pptp/l2tp type.
actually i wanted to know whether i am heading in right direction
or i need to use netcfgx classes as i have to produce a GUI as well to the
user.
Any help is greatly appreciated.

Anand C. Iyer