Need to map/view ROMs

How can I map a rom so that I can read?

It seems that NtMapViewOfSection/ZwMapViewOfSection works only up to the top of installed RAM in the system, but returns FALSE for anything beyond that limit, whether it is RAM, Display memory, or ROM.

If you know the physical address, you can use MmMapIoSpace. If the area in which you are interested is already mapped, then you must use the same MEMORY_CACHING_TYPE or it will fail, at least on versions of Windows since XP, and I think W2K.

Good luck,

mm