SymGetLinePrev64 Function

Debug Help Library

SymGetLinePrev64 Function

Retrieves the line information for the previous source line.

This function supersedes the SymGetLinePrev function. For more information, see Updated Platform Support.

BOOL WINAPI SymGetLinePrev64(
  __in          HANDLE hProcess,
  __in_out      PIMAGEHLP_LINE64 Line
);

Parameters

hProcess

A handle to the process that was originally passed to the SymInitialize function.

Line

A pointer to an IMAGEHLP_LINE64 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 SymGetLinePrev64 function requires that the IMAGEHLP_LINE64 structure have valid data, presumably obtained from a call to the SymGetLineFromAddr64 or SymGetLineFromName64 function. This structure is filled with the line information for the previous line in sequence.

This function returns a pointer to a buffer that may be reused by another function. Therefore, be sure to copy the data returned to another buffer immediately.

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.

Requirements

Redistributable

Requires DbgHelp.dll 5.1 or later.

Header

Declared in Dbghelp.h.

Library

Use Dbghelp.lib.

DLL

Requires Dbghelp.dll.

Unicode

Implemented as SymGetLinePrevW64 (Unicode) and SymGetLinePrev64 (ANSI).

See Also

DbgHelp FunctionsIMAGEHLP_LINE64
SymGetLineFromAddr64
SymGetLineFromName64
SymGetLineNext64
SymInitialize


Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.