I have a hardware which connect with my computer via com interface, I want to implement such a feature: When the button on the hardware is clicked, My application can capture this event and then write something on my application.
So How can I listen to a specific COM interface and capture the event ? How can I get what command the hardware sent to me ?