In case we want to send some AT Command to the first workable mobile device connected to the computer, normally we start the 'devmgmt.msc' to find out which COM port is the right port, but if there is a programming way to do that?
The following is the code to retrieve the first 'Enabled' modem device,
the fields comName and baudRate will be updated for later use.
写在这里留着自己以后用,见笑了。
- iqueen.blogspot.com