SymGetSymPrev64 function (dbghelp.h)
Retrieves the symbol information for the previous symbol.
Syntax
BOOL IMAGEAPI SymGetSymPrev64(
[in] HANDLE hProcess,
[in, out] PIMAGEHLP_SYMBOL64 Symbol
);
Parameters
[in] hProcess
A handle to the process that was originally passed to the SymInitialize function.
[in, out] Symbol
A pointer to an IMAGEHLP_SYMBOL64 structure.
Return value
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.
Remarks
The SymGetSymPrev64 function requires the IMAGEHLP_SYMBOL64 structure to have valid data, presumably obtained from a call to the SymGetSymFromAddr64 or SymGetSymFromName64 function. This structure is filled in with the symbol information for the previous symbol in sequence by virtual address.
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.
To call the Unicode version of this function, define DBGHELP_TRANSLATE_TCHAR. SymGetSymPrevW64 is defined as follows in DbgHelp.h.
BOOL
IMAGEAPI
SymGetSymPrevW64(
__in HANDLE hProcess,
__inout PIMAGEHLP_SYMBOLW64 Symbol
);
This function supersedes the SymGetSymPrev function. For more information, see Updated Platform Support. SymGetSymPrev is defined as follows in Dbghelp.h.
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define SymGetSymPrev SymGetSymPrev64
#define SymGetSymPrevW SymGetSymPrevW64
#else
BOOL
IMAGEAPI
SymGetSymPrev(
__in HANDLE hProcess,
__inout PIMAGEHLP_SYMBOL Symbol
);
BOOL
IMAGEAPI
SymGetSymPrevW(
__in HANDLE hProcess,
__inout PIMAGEHLP_SYMBOLW Symbol
);
#endif
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | dbghelp.h |
Library | Dbghelp.lib |
DLL | Dbghelp.dll |
Redistributable | DbgHelp.dll 5.1 or later |