The best solution to access ports directly is to write a kernel driver. There are some drivers what do this like http://www.geekhideout.com/iodll.shtml
but do it at your own risk!!!!
tkorrovi
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
how can i program the serial com (1 or 2) port using C mingw (Win32/NT) compiler ?
thanks.
Lookup CreateFile() in the win32 API. Accessing ports directly is forbidden I believe.
Kip
The best solution to access ports directly is to write a kernel driver. There are some drivers what do this like
http://www.geekhideout.com/iodll.shtml
but do it at your own risk!!!!
tkorrovi