Skip to content

Latest commit

 

History

History
122 lines (82 loc) · 4.13 KB

nf-dbghelp-symenumsourcelinesw.md

File metadata and controls

122 lines (82 loc) · 4.13 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dbghelp.SymEnumSourceLinesW
SymEnumSourceLinesW function (dbghelp.h)
The SymEnumSourceLinesW (Unicode) function enumerates all source lines in a module.
SymEnumSourceLines
SymEnumSourceLines function
SymEnumSourceLinesW
base.symenumsourcelines
dbghelp/SymEnumSourceLines
dbghelp/SymEnumSourceLinesW
base\symenumsourcelines.htm
Debug
395dd97b-4d0b-4f55-80af-38fc748c924a
08/04/2022
SymEnumSourceLines, SymEnumSourceLines function, SymEnumSourceLinesW, base.symenumsourcelines, dbghelp/SymEnumSourceLines, dbghelp/SymEnumSourceLinesW
dbghelp.h
Windows
SymEnumSourceLinesW (Unicode) and SymEnumSourceLines (ANSI)
Dbghelp.lib
Dbghelp.dll
Windows
DbgHelp.dll 6.4 or later
19H1
SymEnumSourceLinesW
dbghelp/SymEnumSourceLinesW
c++
APIRef
kbSyntax
DllExport
Dbghelp.dll
SymEnumSourceLines
SymEnumSourceLines
SymEnumSourceLinesW

SymEnumSourceLinesW function

-description

Enumerates all source lines in a module.

-parameters

-param hProcess [in]

A handle to a process. This handle must have been previously passed to the SymInitialize function.

-param Base [in]

The base address of the module.

-param Obj [in, optional]

The name of an .obj file within the module. The scope of the enumeration is limited to this file. If this parameter is NULL or an empty string, all .obj files are searched.

-param File [in, optional]

A wildcard expression that indicates the names of the source files to be searched. If this parameter is NULL or an empty string, all files are searched.

-param Line [in, optional]

The line number of a line within the module. The scope of the enumeration is limited to this line. If this parameter is 0, all lines are searched.

-param Flags [in]

If this parameter is ESLFLAG_FULLPATH, the function matches the full path in the File parameter.

-param EnumLinesCallback [in]

A SymEnumLinesProc callback function that receives the line information.

-param UserContext [in, optional]

A user-defined value that is passed to the callback function, or NULL. This parameter is typically used by an application to pass a pointer to a data structure that provides context for the callback function.

-returns

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

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.

Note

The dbghelp.h header defines SymEnumSourceLines as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

DbgHelp Functions

SymEnumLinesProc

SymInitialize