Platform SDK: Debugging and Error Handling

IMAGEHLP_LINE

The IMAGEHLP_LINE structure represents a source file line.

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

Win64: This structure is defined as follows.

typedef struct _IMAGEHLP_LINE64 {
    DWORD   SizeOfStruct;
    PVOID   Key; 
    DWORD   LineNumber; 
    PCHAR   FileName; 
    DWORD64 Address; 
} IMAGEHLP_LINE64, *PIMAGEHLP_LINE64;

Members

SizeOfStruct
Specifies the size of the structure, in bytes. The caller must set this member to sizeof(IMAGEHLP_LINE).
Key
This member is reserved.
LineNumber
Specifies the line number in the file.
FileName
Specifies the name of the file. The name contains the full path.
Address
The address of the first instruction in the line.

Requirements

  Windows NT/2000: Requires Windows 2000. Available as a redistributable for Windows NT 4.0.
  Windows 95/98: Requires Available as a redistributable for Windows 98.
  Header: Declared in Dbghelp.h.

See Also

Debug Help Library Overview, DbgHelp Structures, SymGetLineFromAddr, SymGetLineFromName, SymGetLineNext, SymGetLinePrev