Using _inp(),_outp() funtions for Communicating with ports

Hi. I'm using Windows 7. I want to learn how does c++ communicate with ports.
I googled and found that functions _inp(),_outp() can do that.
But I don't know how to use them.
Are there any good(and easy to understand) sources from where I can learn how to use these functions.
Are there any other functions that can do the same? Please list.
Last edited on
In order to access the hardware you need the WDK: http://msdn.microsoft.com/en-us/windows/hardware/gg487428

If you want to communictat via serial port (COM1: etc) you can use the file functions: http://msdn.microsoft.com/en-us/library/ms810467.aspx
@coder777:I appreciate ur help. Could you also give me the syntax of _inp(),_outp() commands.
btw i use code blocks for compiling.
You can find it yourself on the msdn site: http://msdn.microsoft.com/en-us/

Just enter _inp or _outp or anything like that in the search field on the top of that site
Topic archived. No new replies allowed.