#include #include #include #pragma comment(lib,"rasapi32.lib") #include #include int tr(char d[16]) { RASDIALPARAMS respara; respara.dwSize=sizeof(RASDIALPARAMS); strcpy(respara.szEntryName,"宽带连接"); //连接名称 strcpy(respara.szPhoneNumber,""); strcpy(respara.szCallbackNumber,""); strcpy(respara.szDomain,""); strcpy(respara.szUserName,d); //用户名 strcpy(respara.szPassword,"000000"); //密码 //puts(a); HRASCONN rasconn=NULL; RASCONN Rasconn; DWORD lpcb; DWORD LRasconn; Rasconn.dwSize=sizeof(RASCONN); lpcb=sizeof(RASCONN); RasEnumConnections(&Rasconn,&lpcb,&LRasconn); RasHangUp(Rasconn.hrasconn); //挂断 //Sleep(400);
2021-08-06 16:52:56 36KB C语言 宽带搜号拨号 源程序
1