IDebugSymbols3::GetNameByOffsetWide method

The GetNameByOffsetWide method returns the name of the symbol at the specified location in the target's virtual address space.

Syntax

HRESULT GetNameByOffsetWide(
  ULONG64  Offset,
  PWSTR    NameBuffer,
  ULONG    NameBufferSize,
  PULONG   NameSize,
  PULONG64 Displacement
);

Parameters

Offset

Specifies the location in the target's virtual address space of the symbol whose name is requested. Offset does not need to specify the base location of the symbol; it only needs to specify a location within the symbol's memory allocation.

NameBuffer

Receives the symbol's name. The name is qualified by the module to which the symbol belongs (for example, mymodule!main). If NameBuffer is NULL, this information is not returned.

NameBufferSize

Specifies the size in characters of the buffer NameBuffer.

NameSize

Receives the size in characters of the symbol's name. If NameSize is NULL, this information is not returned.

Displacement

Receives the difference between the value of Offset and the base location of the symbol. If Displacement is NULL, this information is not returned.

Return value

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 buffer was not large enough to hold the symbol's name, so it was truncated.
E_FAIL
No symbol could be found at the specified location.

Remarks

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

Requirements

   
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See also

GetNearNameByOffset

GetOffsetByName

IDebugSymbols3