SymGetFileLineOffsets64 function
Locates line information for the specified module and file name.
Syntax
ULONG WINAPI SymGetFileLineOffsets64( _In_ HANDLE hProcess, _In_opt_ PCSTR ModuleName, _In_ PCSTR FileName, _Out_ PDWORD64 Buffer, _In_ ULONG BufferLines );
Parameters
- hProcess [in]
-
A handle to the process that was originally passed to the SymInitialize function.
- ModuleName [in, optional]
-
The name of the module in which lines are to be located. If this parameter is NULL, the function searches all modules.
- FileName [in]
-
The name of the file in which lines are to be located.
- Buffer [out]
-
An array of offsets for each line. The offset for the line n is stored in element n-1. Array elements for lines that do not have line information are left unchanged.
- BufferLines [in]
-
The size of the Buffer array, in elements.
Return value
If the function succeeds, the return value is the highest line number found. This value is zero if no line information was found.
If the function fails, the return value is LINE_ERROR. 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.
Requirements
|
Redistributable |
DbgHelp.dll 5.1 or later |
|---|---|
|
Header |
|
|
Library |
|
|
DLL |
|
See also