devxlogo

Accessing I/O Memory under Win32

Accessing I/O Memory under Win32

Question:
I would like to program the parallel port in Windows NT or 95. What should I do?

Answer:
At the simplest level, accessing the parallel port involves reading and writing to I/O memory. You can access I/O memory directly under Windows 95 using the IN and OUT instructions in inline assembly language, or using the equivalent C run-time routines. However, under NT, you need a device driver to access I/O memory. Any more detail would depend on precisely what you are trying to do.

devx-admin

Share the Post: