How Can programing with Ports?

Hello all
for all,help me in programming with computer ports.
How in C++ we can dealing with computer ports
softwae ports:I mean ports dealing with networking,vedio card,sound card
Hardware ports:I mean serial port,Parellel port,USB port.
Please help me with any information you own in any aspects.
Thanks for all.
In Win32 ports are treated like files.

Open a port using the CreateFile() function. Use ReadFile() and WriteFile() on them. Use CloseHandle() when done. Etc.

You can read more here:
http://www.google.com/search?btnI=1&q=msdn+Serial+Communications+in+Win32

Hope this helps.
Topic archived. No new replies allowed.