Debugging Tools for Windows

AppendSourcePath

The AppendSourcePath and AppendSourcePathWide methods append directories to the source path.

IDebugSymbols::AppendSourcePath(
    IN PCSTR  Addition
    );

IDebugSymbols3::AppendSourcePathWide(
    IN PWSTR  Addition
    );

#ifdef UNICODE
#define AppendSourcePathT AppendSourcePathWide
#else
#define AppendSourcePathT AppendSourcePath
#endif

Parameters

Addition
Specifies the directories to append to the source path. This is a string that contains source path elements separated by semicolons (;). Each source path element can specify either a directory or a source server.

Return Value

S_OK
The method was successful.

These methods can also return error values. See Return Values for more details.

Interface Version

AppendSourcePath is available in all versions of IDebugSymbols. AppendSourcePathWide is available in IDebugSymbols3 and later versions.

Comments

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.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

See Also

GetSourcePath, SetSourcePath, GetSourcePathElement

Build machine: CAPEBUILD