Skip to content

Latest commit

 

History

History
131 lines (97 loc) · 4.45 KB

nf-dbgeng-idebugsymbols2-getoffsetbyname.md

File metadata and controls

131 lines (97 loc) · 4.45 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:dbgeng.IDebugSymbols2.GetOffsetByName
IDebugSymbols2::GetOffsetByName (dbgeng.h)
The GetOffsetByName method returns the location of a symbol identified by name. This method belongs to the IDebugSymbols2 interface.
debugger\getoffsetbyname.htm
debugger
05/03/2018
IDebugSymbols2::GetOffsetByName
GetOffsetByName, GetOffsetByName method [Windows Debugging], GetOffsetByName method [Windows Debugging],IDebugSymbols interface, GetOffsetByName method [Windows Debugging],IDebugSymbols2 interface, GetOffsetByName method [Windows Debugging],IDebugSymbols3 interface, IDebugSymbols interface [Windows Debugging],GetOffsetByName method, IDebugSymbols2 interface [Windows Debugging],GetOffsetByName method, IDebugSymbols2.GetOffsetByName, IDebugSymbols2::GetOffsetByName, IDebugSymbols3 interface [Windows Debugging],GetOffsetByName method, IDebugSymbols3::GetOffsetByName, IDebugSymbols::GetOffsetByName, IDebugSymbols_ef72e546-d27f-4cdf-9eeb-53151680c2d1.xml, dbgeng/IDebugSymbols2::GetOffsetByName, dbgeng/IDebugSymbols3::GetOffsetByName, dbgeng/IDebugSymbols::GetOffsetByName, debugger.getoffsetbyname
dbgeng.h
Dbgeng.h
Desktop
Windows
IDebugSymbols2::GetOffsetByName
dbgeng/IDebugSymbols2::GetOffsetByName
APIRef
kbSyntax
COM
dbgeng.h
IDebugSymbols2::GetOffsetByName

IDebugSymbols2::GetOffsetByName

-description

The GetOffsetByName method returns the location of a symbol identified by name.

-parameters

-param Symbol [in]

Specifies the name of the symbol to locate. The name may be qualified by a module name (for example, mymodule!main).

-param Offset [out]

Receives the location in the target's memory address space of the base of the symbol's memory allocation.

-returns

This method may also return other error values. See Return Values for more details.

Return code Description
S_OK
The method was successful.
S_FALSE
The method was successful. However, the name Symbol was not unique and multiple symbols with that name were found. One of these symbols was arbitrarily chosen and returned.
E_FAIL
No symbol could be found with the specified name.

-remarks

If the name Symbol is not unique and GetOffsetByName finds multiple symbols with that name, then the ambiguity will be resolved arbitrarily. In this case the value S_FALSE will be returned. StartSymbolMatch can be used to initiate a search to determine which is the desired result.

GetNameByOffset does not support pattern matching (e.g. wildcards). To find a symbol using pattern matching use StartSymbolMatch.

If the module name for the symbol is known, it is best to qualify the symbol name with the module name. Otherwise the engine will search the symbols for all modules until it finds a match; this can take a long time if it has to load the symbol files for a lot of modules. If the symbol name is qualified with a module name, the engine only searches the symbols for that module.

For more information about symbols and symbol names, see Symbols.

-see-also

GetNameByOffset

IDebugSymbols

IDebugSymbols2

IDebugSymbols3