Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Setting modem properties

Setting modem properties

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krishnan V
    wrote on last edited by
    #1

    I am developing an app, which creates a DUN entry programmatically. The issue I am facing is that, how do I set-up the modem properties like baud rate, h/w flow control, etc. for the modem device I have specified for the entry. Also, how do I change the default settings for a modem like init strings, etc.? Thanks, Krishnan

    M 1 Reply Last reply
    0
    • K Krishnan V

      I am developing an app, which creates a DUN entry programmatically. The issue I am facing is that, how do I set-up the modem properties like baud rate, h/w flow control, etc. for the modem device I have specified for the entry. Also, how do I change the default settings for a modem like init strings, etc.? Thanks, Krishnan

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2
      1. Call GetCommState( handle, &dcb ); to get the existing port settings into DCB. 2) Modify the DCb structure accordingly to set new values. 3) Call SetCommState to set the new values back to port. rgds...mil10.
      K 1 Reply Last reply
      0
      • M Milton Karimbekallil
        1. Call GetCommState( handle, &dcb ); to get the existing port settings into DCB. 2) Modify the DCb structure accordingly to set new values. 3) Call SetCommState to set the new values back to port. rgds...mil10.
        K Offline
        K Offline
        Krishnan V
        wrote on last edited by
        #3

        What I need is to set the modem properties for the dial-up connection I create programmatically. The GetCommState fn works if I have handle to the serial port. I just need to set-up the connection so that whenever the user dials the connection, the correct settings are used to connect with the modem.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups