In a WINNT environment you cannot access the ports directly. You need a driver to allow your code access to the ports. The best utility I have found for this is
here you want the Win95/NT Port I/O driver.
also you might want to look at other stuff
here.