SymGetOmaps function

Retrieves the omap tables within a loaded module.

Syntax

BOOL IMAGEAPI SymGetOmaps(
  HANDLE   hProcess,
  DWORD64  BaseOfDll,
  POMAP    *OmapTo,
  PDWORD64 cOmapTo,
  POMAP    *OmapFrom,
  PDWORD64 cOmapFrom
);

Parameters

hProcess

A handle to a process. This handle must have been previously passed to the SymInitialize function.

BaseOfDll

The base address of the module.

OmapTo

An array of address map entries to the new image layout taken from the original layout. For details on the map entries, see the OMAP structure.

cOmapTo

The number of entries in the OmapTo array.

OmapFrom

An array of address map entries from the new image layout to the original layout (as described by the debug symbols). For details on the map entries, see the OMAP structure.

cOmapFrom

The number of entries in the OmapFrom array.

Return Value

If the function succeeds, the return value is TRUE.

If the function fails (the omap is not found), the return value is FALSE. To retrieve extended error information, call GetLastError.

Remarks

All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

Requirements

   
Target Platform Windows
Header dbghelp.h
Library Dbghelp.lib
DLL Dbghelp.dll
Redistributable DbgHelp.dll 6.8 or later

See Also

OMAP