🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Enumerating modems
RasEnumDevices() does what you need.
RasEnumDevices(NULL, &lpcb, &lpcDevices);lpRasDevInfo = (LPRASDEVINFO) GlobalAlloc(GPTR, lpcb);lpRasDevInfo->dwSize = sizeof(RASDEVINFO); nRet = RasEnumDevices(lpRasDevInfo, &lpcb, &lpcDevices);if (nRet != 0){ printf("RasEnumDevices failed: Error %d", nRet);}else{ printf("The following RAS capable devices were found on this machine:\n\n"); for (i=0; i < lpcDevices; i++) { printf("%s\n",lpRasDevInfo->szDeviceName); lpRasDevInfo++; }}
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement