The GetOffsetByLine method returns the location of the instruction that corresponds to a specified line in the source code.
- Line [in]
Specifies the line number in the source file.
- File [in]
Specifies the file name of the source file.
- Offset [out]
Receives the location in the target's virtual address space of an instruction for the specified line.
This method may also return other error values. See Return Values for more details.
The method was successful.
A line in a source file might correspond to multiple instructions and this method can return any one of these instructions.
For more information about source files, see Using Source Files.