Debugging Tools for Windows

SetSourcePath

The SetSourcePath and SetSourcePathWide methods set the source path.

IDebugSymbols::SetSourcePath(
    IN PCSTR  Path
    );

IDebugSymbols3::SetSourcePathWide(
    IN PCWSTR  Path
    );

#ifdef UNICODE
#define SetSourcePathT SetSourcePathWide
#else
#define SetSourcePathT SetSourcePath
#endif

Parameters

Path
Specifies the new 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

SetSourcePath is available in all versions of IDebugSymbols. SetSourcePathWide 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

AppendSourcePath, GetSourcePath

Build machine: CAPEBUILD