Debugging Tools for Windows |
The GetModuleByOffset2 method searches through the process's modules for one whose memory allocation includes the specified location.
HRESULT
IDebugSymbols3::GetModuleByOffset2(
IN ULONG64 Offset,
IN ULONG StartIndex,
IN ULONG Flags,
OUT OPTIONAL PULONG Index,
OUT OPTIONAL PULONG64 Base
);
Flag | Effect |
---|---|
DEBUG_GETMOD_NO_LOADED_MODULES | Do not search the loaded modules. |
DEBUG_GETMOD_NO_UNLOADED_MODULES | Do not search the unloaded modules. |
This method may also return error values. See Return Values for more details.
GetModuleByOffset2 is available in IDebugSymbols3 and later versions.
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.