[comp.windows.ms] Read real memory from Windows Application

rajesh@rtangri1.EBay.Sun.COM (Rajesh Tangri) (10/12/90)

I have a question regarding Windows 3.0 SDK.  I need to read physical
memory from Windows application running in 386 protected mode.  So,
the question simply is: "How to load data segment and offset into CPU
registers in  a Windows Application running in 386 protected mode ????

A friend suggested using "fp_segments" Microsoft C 6.0 routine; but this
is for 386 real mode only.  Also, on page: 16.11 of SDK Guide to
Programming, Windows describes how to use Global Selector Constants for
doing memory mapped I/O.  I wrote some _asm inline assembly to read from
memory; but "__D000H " remains an undefined label.  Which Windows
include file defines this global selector constant ???

Please reply directly to me.  I will post a summary to the net.