Debugging Tools for Windows |
The GetSymbolModule and GetSymbolModuleWide methods return the base address of module which contains the specified symbol.
HRESULT
IDebugSymbols::GetSymbolModule(
IN PCSTR Symbol,
OUT PULONG64 Base
);
HRESULT
IDebugSymbols3::GetSymbolModuleWide(
IN PCWSTR Symbol,
OUT PULONG64 Base
);
#ifdef UNICODE
#define GetSymbolModuleT GetSymbolModuleWide
#else
#define GetSymbolModuleT GetSymbolModule
#endif
This method may also return error values. See Return Values for more details.
GetSymbolModule is available in all versions of IDebugSymbols. GetSymbolModuleWide is available in IDebugSymbols3 and later versions.
The string Symbol must contain an exclamation point ( ! ). If Symbol is a module-qualified symbol name (for example, mymodules!main) or if the module name is omitted (for example, !main), the engine will search for this symbol and return the module in which it is found. If Symbol contains just a module name (for example, mymodule!) the engine returns the first module with this module name.
For more information about symbols, see Symbols.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.