Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SymGetLinePrev64 function

Retrieves the line information for the previous source line.

Syntax


BOOL WINAPI SymGetLinePrev64(
  _In_    HANDLE           hProcess,
  _Inout_ PIMAGEHLP_LINE64 Line
);

Parameters

hProcess [in]

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

Line [in, out]

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. SymGetLinePrevW64 is defined as follows in DbgHelp.h.


BOOL
IMAGEAPI
SymGetLinePrevW64(
    __in HANDLE hProcess,
    __inout PIMAGEHLP_LINEW64 Line
    );

#ifdef DBGHELP_TRANSLATE_TCHAR
#define SymGetLinePrev64    SymGetLinePrevW64
#endif

This function supersedes the SymGetLinePrev function. For more information, see Updated Platform Support. SymGetLinePrev is defined as follows in DbgHelp.h.


#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define SymGetLinePrev SymGetLinePrev64
#else
BOOL
IMAGEAPI
SymGetLinePrev(
    __in HANDLE hProcess,
    __inout PIMAGEHLP_LINE Line
    );

BOOL
IMAGEAPI
SymGetLinePrevW(
    __in HANDLE hProcess,
    __inout PIMAGEHLP_LINEW Line
    );
#endif

Requirements

Redistributable

DbgHelp.dll 5.1 or later

Header

Dbghelp.h

Library

Dbghelp.lib

DLL

Dbghelp.dll

Unicode and ANSI names

SymGetLinePrevW64 (Unicode) and SymGetLinePrev64 (ANSI)

See also

DbgHelp Functions
IMAGEHLP_LINE64
SymGetLineFromAddr64
SymGetLineFromName64
SymGetLineNext64
SymInitialize

 

 

Community Additions

ADD
Show:
© 2015 Microsoft