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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Disabling/Enabling a serial port

Disabling/Enabling a serial port

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 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.
  • N Offline
    N Offline
    neffc
    wrote on last edited by
    #1

    I know how to do this through explorer and how to 'open' and 'close' IO to the serial ports but I actually want to disable them. How would I do this progmatically??

    V 1 Reply Last reply
    0
    • N neffc

      I know how to do this through explorer and how to 'open' and 'close' IO to the serial ports but I actually want to disable them. How would I do this progmatically??

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      One solution is to disable the COM port. Check out this reference at MSDN. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/device\_management\_functions.asp I am not familiar with serial ports, but try openning a connection and keep it alive at all time. That may block any I/O. Kuphryn

      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