Retrieves the home directory used by Dbghelp.
PCHAR IMAGEAPI SymGetHomeDirectory( DWORD type, PSTR dir, size_t size );
The directory to be retrieved. This parameter can be one of the following values.
||The home directory.|
||The source directory.|
||The symbol directory.|
A pointer to a string that receives the directory.
The size of the output buffer, in characters.
If the function succeeds, the return value is a pointer to the dir parameter.
If the function fails, the return value is NULL. To retrieve extended error information, call GetLastError.
All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.
To call the Unicode version of this function, define DBGHELP_TRANSLATE_TCHAR.
|Redistributable||DbgHelp.dll 6.1 or later|