plug-and-play

MAC addresses on a machine / filtering out the MAC addresses of plug and play devices

痞子三分冷 提交于 2020-01-17 06:14:51
问题 I have the following code which runs through and populates a character array with up to 3 WiFi and Ethernet adapter MAC addresses on a Windows machine: IP_ADAPTER_INFO *info = NULL, *pos; DWORD size = 0; if (GetAdaptersInfo(info, &size) != ERROR_BUFFER_OVERFLOW) return; info = (IP_ADAPTER_INFO *)malloc(size); if (GetAdaptersInfo(info, &size) != ERROR_SUCCESS) return; char addresses[1024]; char buffer[1024]; memset(addresses, 0, sizeof(addresses)); memset(buffer, 0, sizeof(buffer)); int

Device misdetected as serial mouse

♀尐吖头ヾ 提交于 2019-11-30 12:03:05
问题 I'm working on a device which communicates with a PC through a (virtual) serial port. The problem is that the data we are sending occasionally gets incorrectly identified by Windows as a bus mouse, after which the "Microsoft Serial Ballpoint" driver is loaded and the mouse pointer starts jumping around on the screen and randomly clicking on things. A bit of Googling reveals that is an old and well-known problem with serial devices where the usual work-around is a bit of registry hacking to

Device misdetected as serial mouse

我们两清 提交于 2019-11-30 01:23:26
I'm working on a device which communicates with a PC through a (virtual) serial port. The problem is that the data we are sending occasionally gets incorrectly identified by Windows as a bus mouse, after which the "Microsoft Serial Ballpoint" driver is loaded and the mouse pointer starts jumping around on the screen and randomly clicking on things. A bit of Googling reveals that is an old and well-known problem with serial devices where the usual work-around is a bit of registry hacking to disable the offending driver. That it is a lot to demand from our users however and I'd rather not have