How do I open COM1 for read.write access in C



My computer is running Windows XP and I have the Visual C++ Express
Edition compiler. I need to write a program that drives an ASCII
device via the COM1 port. I'm having trouble locating documentation
on the proper syntax for opening the COM port device and registering
for interrupts from the Com port so that I can handle the I/O on a
character by character basis (required for the hardware that will be
attached).

Can anyone supply links to the appropriate documentation?

Thanks

Tom

.



Relevant Pages

  • Re: How do I open COM1 for read.write access in C
    ... device via the COM1 port. ... I'm having trouble locating documentation ... on the proper syntax for opening the COM port device and registering ... character by character basis (required for the hardware that will be ...
    (microsoft.public.windowsxp.general)
  • Need help with VSFTP server
    ... password authentication takes a long time) but not from an FTP GUI ... Are there some additional ports that I need to port forward? ... # Uncomment this to allow the anonymous FTP user to upload files. ... # By default the server will pretend to allow ASCII mode but in fact ...
    (comp.os.linux.networking)
  • Mysterious serial port error message
    ... I'm trying to write ASCII text to a serial port by MatLab. ... I'm monitoring COM9 by hyperterminal. ...
    (comp.soft-sys.matlab)
  • Re: DOS nethack 3.4.3 too slow?
    ... fact is that the GUI version *doesn't* do ascii and vice ... MSDOS port - can switch between text and tiles via Fx keys ... Windows GUI - defaults to tiles but can switch to text via the ...
    (rec.games.roguelike.nethack)
  • Re: DOS nethack 3.4.3 too slow?
    ... the DOS version. ... It can be switched between tiles and ASCII, ... ever see timing issues because of the GUI routines of Nethack. ... The MS port still sucks though. ...
    (rec.games.roguelike.nethack)