ToolHelp and 64bit memory addressing

  • Thread starter Thread starter hrstd
  • Start date Start date
H

hrstd

Guest
The MODULEENTRY32 structure (MODULEENTRY32) has a BYTE* modBaseAddr member that is cast as a DWORD in the examples.

If I understand correctly, this will yield a 32bits address for the module base address (DWORD is an alias for unsigned long - that is 32 bits on my machine).

My question is: what if my app uses more than 4Gig of memory ? Won't the cast fail ? How to handle 64 bits addressing in the case of the base address of a module is beyond 2^32 ?

Thank you.


wefoiiqwhefouiwefh

Continue reading...
 
Back
Top