en der har en compiler ????
er der ikke en der gider at compile dette her:#include <ras.h>
#define MAX_CONNECTIONS 128
void HangUpConnections()
{
RASCONN rcConnection[ MAX_CONNECTIONS ];
DWORD dwBufferSize;
DWORD dwTotalConnections;
int nLoop;
rcConnection[0].dwSize = sizeof( RASCONN );
dwBufferSize = MAX_CONNECTIONS * sizeof( RASCONN );
if( RasEnumConnections( rcConnection, &swBufferSize, &dwTotalConnections ) )
return;
if( dwTotalConnections )
{
for( nLoop = 0; nLoop < (int) dwTotalConnections; nLoop ++)
{
RASCONNSTATUS rcsStatus;
rcsStatus.dwSize = sizeof( RASCONNSTATUS );
if( RasGetConnectStatus( rcConnection[ nLoop ].hrasconn, &rcsStatus ) )
break;
if( rcsStatus.rasconnstate == RASCS_Connected )
{
..
if( RasHangUp( rcConnection[ nLoop ].hrasconn ) )
break;
}
}
}
}
til hangup.exe
