I am using the windows CreateFile() function to open and communicate to modems via a comport, but have come across some modems (especially internal modems) which present their port as a custom name in place of the usual Com1, Com2.. etc, as viewed in Hyperterminal.
LPCTSTR lpFileName;
lpFileName = "COM1";
HANDLE hComm = CreateFile( lpFileName,
GENERIC_READ | GENERIC_WRITE,
0,
0,
CREATE_NEW,
0,
0);
I would be very greatful if someone could suggest a means of programatically reading the modem port designation for use in this (or other) functions to access the comport.
LPCTSTR lpFileName;
lpFileName = "COM1";
HANDLE hComm = CreateFile( lpFileName,
GENERIC_READ | GENERIC_WRITE,
0,
0,
CREATE_NEW,
0,
0);
I would be very greatful if someone could suggest a means of programatically reading the modem port designation for use in this (or other) functions to access the comport.