setting baud rate on dial-up connection win32

870 views Asked by At

I am creating dial-up connection in code in Windows XP and Windows 7 (RasSetEntryProperties). The entries come up with the default baud rate of 19200.

Using Win32 how do I change the baud rate in both Windows XP and Windows 7?

2

There are 2 answers

0
Gregor Brandt On BEST ANSWER

Modify the DCB and MaxConnectSpeed in the modem registry entry BEFORE making the RAS entry solves this issue.

1
Windows programmer On

SetCommState. Call GetCommState first so you can preserve other existing settings that you don't want to change.