marimuthu.pesit
November 20th, 2008, 08:52 AM
Hi,
I have an Mobile Data card (device entry appears under Modems in Device Manager) which I can open for communication via HyperTerminal at an Baud Rate("Maximum Port Speed") of 115200Bps only.
I can obviously change the Baud Rate value from the Device Manager for this modem device, but i want the Baud Rate to be changed from it's default value to 115200 programatically.
I did some googling and found that the Baud Rate for an device can be set using IOCTL, that is using IOCTL_SERIAL_SET_BAUD_RATE along with the function DeviceIoControl().
Found that this IOCTL_SERIAL_SET_BAUD_RATE is defined in the "ntddser.h" file.
Not able to figure out the location of this file and I am stuck here.
Could any body guide me on these lines.
Code snippet containing similar implementation would be of great help.
I am working on VC++8.0 on Windows XP.
Regards.
I have an Mobile Data card (device entry appears under Modems in Device Manager) which I can open for communication via HyperTerminal at an Baud Rate("Maximum Port Speed") of 115200Bps only.
I can obviously change the Baud Rate value from the Device Manager for this modem device, but i want the Baud Rate to be changed from it's default value to 115200 programatically.
I did some googling and found that the Baud Rate for an device can be set using IOCTL, that is using IOCTL_SERIAL_SET_BAUD_RATE along with the function DeviceIoControl().
Found that this IOCTL_SERIAL_SET_BAUD_RATE is defined in the "ntddser.h" file.
Not able to figure out the location of this file and I am stuck here.
Could any body guide me on these lines.
Code snippet containing similar implementation would be of great help.
I am working on VC++8.0 on Windows XP.
Regards.