SymGetSearchPath

The SymGetSearchPath function copies the search path for the requested process into the SearchPath buffer.

BOOL SymGetSearchPath(

IN HANDLE hProcess,  
OUT LPSTR SearchPath,  
IN DWORD SearchPathLength  
);  

Parameters

hProcess

The process handle that was originally passed to SymInitialize.

SearchPath

A pointer to the buffer that receives the search path.

SearchPathLength

The length in bytes of the SearchPath buffer.

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, then the return value is FALSE. To retrieve extended error information, call GetLastError.

Remarks

The SymGetSearchPath function copies the search path for the requested process into the SearchPath buffer. If the function fails, the contents of the buffer are undefined.