How to read/write arbitrary io port and memroy address in 98/NT?

Dear all,
How to read/write arbitrary (0 - 0xFFFF) io port in 98/NT?
How to read/write arbitrary (0 - 4G) physical memroy in 98/NT?
Thanks.

> How to read/write arbitrary (0 - 0xFFFF) io port in 98/NT?

READ_PORT_UCHAR

How to read/write arbitrary (0 - 4G) physical memroy in 98/NT?
Thanks.

Try MmMapIoSpace. Maybe this will help.

Max