virtual-serial-port

Detecting USB Insertion / Removal Events in Windows using C++

冷暖自知 提交于 2019-11-26 13:07:36
问题 I am writing an extension for an existing application that needs to handle USB insertion/removal events. I know the VID/PID of the device of interest. However, I don\'t have access to the window handle, so I don\'t know if RegisterDeviceNotification will be of much use, unless there is a way to obtain the handle via the WINAPI . What would be the best way to detect USB insertion/removal events with C++? This sample code on the Microsoft website shows how to receive event notifications via WMI

Faking an RS232 Serial Port

自闭症网瘾萝莉.ら 提交于 2019-11-26 06:57:10
问题 I\'m developing a project that has a number of hardware sensors connecting to the deployment machine through RS232 serial ports. But ... I\'m developing on a machine without an physical RS232 serial ports, but I would like to make fake serial ports that I can connect to and output data from with the aim of faking input from hardware sensors. Does anyone know of a way to create a fake serial port and control it on Windows XP? 回答1: If you are developing for Windows, the com0com project might be