_IMAGEHLP_LINE structure

Represents a source file line.

Syntax

typedef struct _IMAGEHLP_LINE {
  DWORD SizeOfStruct;
  PVOID Key;
  DWORD LineNumber;
  PCHAR FileName;
  DWORD Address;
} IMAGEHLP_LINE, *PIMAGEHLP_LINE;

Members

SizeOfStruct

The size of the structure, in bytes. The caller must set this member to sizeof(IMAGEHLP_LINE64).

Key

This member is reserved for use by the operating system.

LineNumber

The line number in the file.

FileName

The name of the file, including the full path.

Address

The address of the first instruction in the line.

Remarks

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

C++
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define IMAGEHLP_LINE IMAGEHLP_LINE64
#define PIMAGEHLP_LINE PIMAGEHLP_LINE64
#else
typedef struct _IMAGEHLP_LINE {
    DWORD    SizeOfStruct; 
    PVOID    Key; 
    DWORD    LineNumber; 
    PCHAR    FileName; 
    DWORD    Address; 
} IMAGEHLP_LINE, *PIMAGEHLP_LINE;

typedef struct _IMAGEHLP_LINEW { DWORD SizeOfStruct; PVOID Key; DWORD LineNumber; PCHAR FileName; DWORD64 Address; } IMAGEHLP_LINEW, *PIMAGEHLP_LINEW; #endif

Requirements

   
Header dbghelp.h

See Also

SymGetLineFromAddr64

SymGetLineFromName64

SymGetLineNext64

SymGetLinePrev64