Needed:
In order to get the code below going it is necessary to
have RAS installed on the system ( RASAPI32.DLL ). This is automatically the case when you`ve got a dial up network installed
inlude RAS.H
link RASAPI32.LIB
Source Code:
// Quit a dial up connection - rasapi32.lib und #include "ras.h" needed
bool DisconnectRas()
{
bool bOk = false;
RASCONN ras[20];
DWORD dSize,dNumber,dCount;