SymGetSymPrev

The SymGetSymPrev function retrieves the symbol information of the previous symbol.

BOOL SymGetSymPrev(
  IN HANDLE hProcess,             
  IN OUT PIMAGEHLP_SYMBOL Symbol  
);
 

Parameters

hProcess
Handle to the process that was originally passed to the SymInitialize function.
Symbol
Pointer to an IMAGEHLP_SYMBOL structure.

Return Values

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 SymGetSymPrev function requires the IMAGEHLP_SYMBOL structure to have valid data, presumably obtained from a call to the SymGetSymFromAddr or SymGetSymFromName function. This structure is filled in with the symbol information for the previous symbol in sequence by virtual address.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in imagehlp.h.
  Import Library: Use imagehlp.lib.

See Also

PE Image Helper (ImageHlp) Overview, Symbol Handler, IMAGEHLP_SYMBOL, SymGetSymFromAddr, SymGetSymFromName, SymGetSymNext, SymInitialize