I guessing that by INPORT and OUTPORT you mean the 80x86 instructions for performing peripheral I/O. In a protected mode operating system, like Windows, you can't write any normal program that uses these instructions, because they are protected. They are blocked by Windows in most cases. Sometimes Windows will emulate the instructions so it appears you can still access them, but it won't work for every PCI card.
In Windows the only way to directly access peripheral I/O all the time, including the PCI bus, is to write a device driver. You can do this by getting a copy of the Windows Device Driver Kit (DDK) from Microsoft. It takes a bit of work, but fortunately others have already written generic device drivers to do INPORT/OUTPORT. I bet you'll find a good enough one through a Google search.
For communications peripherals, such as parallel and serial ports, Windows provides built-in device drivers for you. The functions obislavu mentioned are the ones you call to use these device drivers. Note that these only work for you if the PCI card you are trying to access is a communications device. For a sound card, its device driver is usually plugged into the Wave API (WaveOutOpen, WaveInOpen, and other functions) or the DirectX API (too complex to get into here).