Share via

Dbghelp API fails to find symbol files in downstream store

RLWA32 52,261 Reputation points
2026-03-20T07:34:53.8733333+00:00

Over time the local store that I used for downloaded symbol files had become quite large. I considered using the AgeStore utility to prune it but it balked because file system last access updating was disabled. So I decided to write a utility using the Dbghelp API to find the file system location of the symbol files that correspond to my system's current binaries. With that information I would be able to delete all other old and irrelevant symbol files that uselessly consumed disk space. I had experimented with this API in the past and knew that the SymFindFileInPath function was capable of enumerating the symbol store using a callback function that compared symbol information from a binary to the corresponding information from the enumerated symbol files. This comparison would enable me to achieve my objective.

However, SymFindFileInPath consistently failed to enumerate any symbol files in the local store, returning a file not found error. Consequently, the callback function was not executed. Apparently, the issue is caused by downloaded symbol files being stored in a sub-folder of the local store that is not searched by symsrv.dll.

I have reported this on the developer community site at https://developercommunity.visualstudio.com/t/Dbghelp-API-fails-to-find-symbol-files-i/11062806

Windows development | Windows API - Win32
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.