Click here to Skip to main content
16,016,229 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Luc Pattyn13-Nov-09 1:15
sitebuilderLuc Pattyn13-Nov-09 1:15 
AnswerRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Randor 13-Nov-09 12:00
professional Randor 13-Nov-09 12:00 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson14-Nov-09 21:16
Jörgen Sigvardsson14-Nov-09 21:16 
General[Message Deleted] Pin
ch_Canda3-Dec-09 18:10
ch_Canda3-Dec-09 18:10 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson3-Dec-09 20:48
Jörgen Sigvardsson3-Dec-09 20:48 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson14-Nov-09 22:32
Jörgen Sigvardsson14-Nov-09 22:32 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Randor 15-Nov-09 0:37
professional Randor 15-Nov-09 0:37 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
fat_boy14-Jan-10 5:58
fat_boy14-Jan-10 5:58 
WMI is not mandatory!

Actually I never imnplemented it.

Basically you will need to enumerate the serial (GUID) devices from your app. Get the friendly nmame for each device, and if it is the right port (this is the name displayed in device manager) then you go ahead and use it.

OK, I;ll be nice and bung you some code to help:

SetupDiGetClassDevs(); Thiks gives you a kind of handle to an array.

Call SetupDiEnumDeviceInterfaces(); for each device in sdaid 'array'.
With the info from this call SetupDiGetDeviceInterfaceDetail(), then call
SetupDiOpenDeviceInterface();
Then call SetupDiGetDeviceRegistryProperty() SPDRP_FRIENDLYNAME and SPDRP_DEVICEDESC for example.

If you agree that GW is a crock of chit I'll mail you some code. Poke tongue | ;-P

Morality is indistinguishable from social proscription

GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson14-Jan-10 6:04
Jörgen Sigvardsson14-Jan-10 6:04 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
fat_boy15-Jan-10 5:38
fat_boy15-Jan-10 5:38 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson15-Jan-10 5:53
Jörgen Sigvardsson15-Jan-10 5:53 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
fat_boy15-Jan-10 6:44
fat_boy15-Jan-10 6:44 
QuestionBest Server Pin
meki_211811-Nov-09 14:47
meki_211811-Nov-09 14:47 
AnswerRe: Best Server Pin
Dave Kreskowiak11-Nov-09 16:56
mveDave Kreskowiak11-Nov-09 16:56 
QuestionHow to put DVD and video on the Sony Walkman Pin
BlossomF8-Nov-09 3:04
BlossomF8-Nov-09 3:04 
AnswerRe: How to put DVD and video on the Sony Walkman Pin
Dave Kreskowiak8-Nov-09 3:36
mveDave Kreskowiak8-Nov-09 3:36 
QuestionWhat is clock managment? Pin
Mohamed_Khalil6-Nov-09 3:54
Mohamed_Khalil6-Nov-09 3:54 
AnswerRe: What is clock managment? Pin
Roger Wright11-Nov-09 18:14
professionalRoger Wright11-Nov-09 18:14 
GeneralRe: What is clock managment? Pin
Jörgen Andersson11-Nov-09 20:22
professionalJörgen Andersson11-Nov-09 20:22 
QuestionWhy can't I copy a 7 GB file to an external USB HD with 120 GB free? Pin
Johann Gerell2-Nov-09 19:48
Johann Gerell2-Nov-09 19:48 
AnswerRe: Why can't I copy a 7 GB file to an external USB HD with 120 GB free? - SOLVED Pin
Johann Gerell2-Nov-09 20:31
Johann Gerell2-Nov-09 20:31 
GeneralRe: Why can't I copy a 7 GB file to an external USB HD with 120 GB free? - SOLVED Pin
Mekong River5-Nov-09 17:21
Mekong River5-Nov-09 17:21 
GeneralRe: Why can't I copy a 7 GB file to an external USB HD with 120 GB free? - SOLVED Pin
Luc Pattyn5-Nov-09 17:37
sitebuilderLuc Pattyn5-Nov-09 17:37 
GeneralRe: Why can't I copy a 7 GB file to an external USB HD with 120 GB free? - SOLVED Pin
Mekong River9-Nov-09 22:25
Mekong River9-Nov-09 22:25 
GeneralRe: Why can't I copy a 7 GB file to an external USB HD with 120 GB free? - SOLVED Pin
fat_boy14-Jan-10 5:59
fat_boy14-Jan-10 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.