Introduction - If you have any usage issues, please Google them yourself
A small demo, use c++ to detect whether there are Android connected to your computer. Way is to create a pair of read and write pipeline connecting adb.exe and our program. The adb.exe parameter detection equipment, we program to read.