P
P
Pavel Kaptur2016-10-06 16:42:28
C++ / C#
Pavel Kaptur, 2016-10-06 16:42:28

What is the best way to handle the USB connection event?

Good day to everyone, I want to ask people experienced in designing, there is a task to monitor the connection of USB devices. I subscribed to the connection notification and I get a line with the device name \\.\USBSTOR... Actually, the question itself is what to do next? I can directly perform the necessary actions when receiving an event, or I can add a line to the queue and process it in a separate thread, or process it through Event. Lots of options, how would you do it? How will it be better, more scalable, etc. the duration of the procedure is not very long

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question