cioheaderincludeioports

For C what is the Windows header version for Linux header <sys/io.h> I/O Ports


For Linux you can include <sys/io.h> to have I/O Ports with hardware I assume?

outb(...);
outw(...);
inb(...);

Which header must I include to have these functions for Windows compilation?

Edit: Windows equivalent of inb(), outb() low-level I/O says it's impossible on Windows; you need install a driver on Windows to use a quick fix.


Solution

  • Generally, for MS Windows low level io is WinAPI functions like CreateFile, WriteFile and so on.