Debugging Tools for Windows |
The GetModuleByOffset method searches through the target's modules for one whose memory allocation includes the specified location.
HRESULT
IDebugSymbols::GetModuleByOffset(
IN ULONG64 Offset,
IN ULONG StartIndex,
OUT OPTIONAL PULONG Index,
OUT OPTIONAL PULONG64 Base
);
This method may also return error values. See Return Values for more details.
GetModuleByOffset is available in all versions of IDebugSymbols.
Starting at the specified index, this method returns the first module it finds whose memory allocation address range includes the specified location. If the target has more than one module whose memory address range includes this location, then subsequent modules can be found by repeated calls to this method with higher values of StartIndex.
For more information about modules, see Modules.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.