Debugging Tools for Windows |
The GetSourcePathElement and GetSourcePathElementWide methods return an element from the source path.
IDebugSymbols::GetSourcePathElement(
IN ULONG Index,
OUT OPTIONAL PSTR Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG ElementSize
);
IDebugSymbols3::GetSourcePathElementWide(
IN ULONG Index,
OUT OPTIONAL PWSTR Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG ElementSize
);
#ifdef UNICODE
#define GetSourcePathElementT GetSourcePathElementWide
#else
#define GetSourcePathElementT GetSourcePathElement
#endif
These methods can also return error values. See Return Values for more details.
GetSourcePathElement is available in all versions of IDebugSymbols. GetSourcePathElementWide is available in IDebugSymbols3 and later versions.
The source path is used by the engine when searching for source files.
For more information about manipulating the source path, see Using Source Files. For an overview of the source path and its syntax, see Source Path.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.