1

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?

Mike
  • 47,263
  • 29
  • 113
  • 177
Gregor Brandt
  • 7,659
  • 38
  • 59
  • Hmm, no close reason that says "asked 15 years too late" :/ Ask at superuser.com for the phone book. – Hans Passant Feb 24 '11 at 00:20
  • It looks like the poster's code is going to be used in 75% of the world that doesn't have wired phone service. It doesn't look like the code will control elevators or industrial machines because those aren't Ras type stuff. – Windows programmer Feb 24 '11 at 00:38
  • 1
    talking to legacy equipment, have to use win32 API – Gregor Brandt Feb 24 '11 at 00:41

2 Answers2

0

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

Windows programmer
  • 7,871
  • 1
  • 22
  • 23
0

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

Gregor Brandt
  • 7,659
  • 38
  • 59