| Debugging Tools for Windows | 
The GetNearNameByOffset and GetNearNameByOffsetWide methods return the name of a symbol that is located near the specified location.
HRESULT
  IDebugSymbols::GetNearNameByOffset(
    IN ULONG64  Offset,
    IN LONG  Delta,
    OUT OPTIONAL PSTR  NameBuffer,
    IN ULONG  NameBufferSize,
    OUT OPTIONAL PULONG  NameSize,
    OUT OPTIONAL PULONG64  Displacement
    );
HRESULT
  IDebugSymbols3::GetNearNameByOffsetWide(
    IN ULONG64  Offset,
    IN LONG  Delta,
    OUT OPTIONAL PWSTR  NameBuffer,
    IN ULONG  NameBufferSize,
    OUT OPTIONAL PULONG  NameSize,
    OUT OPTIONAL PULONG64  Displacement
    );
#ifdef UNICODE
#define GetNearNameByOffsetT GetNearNameByOffsetWide
#else
#define GetNearNameByOffsetT GetNearNameByOffset
#endif
This method may also return other error values. See Return Values for more details.
GetNearNameByOffset is available in all versions of IDebugSymbols. GetNearNameByOffsetWide is available in IDebugSymbols3 and later versions.
By increasing or decreasing the value of Delta, these methods can be used to iterate over the target's symbols starting at a particular location.
If Delta is zero, these methods behave the same way as GetNameByOffset.
For more information about symbols and symbol names, see Symbols.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.