Hello Sandor.
There are other API functions that may be of value, but I guess I would need a more exact understanding of your workflow.
Better yet, why don’t you index all these extra symbols into an separate symbol store from your local cache. But instead of actually moving the files to the store, use pointers. Then you will have a simple index that will work without any concern for what the hash values are.
I don’t have a copy of the help file with me, but you want to use the symstore.exe option that creates file.ptr.
.p
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Sandor LUKACS
Sent: Tuesday, November 13, 2007 12:31 AM
To: Kernel Debugging Interest List
Subject: Re: [windbg] symbol path hash values
Pat Styles wrote:
Hello Tim.
The values that are used to calculate the hashes differ dependent upon the type of file and some other edge cases. I guess I should ask what it is you are trying to achieve. Maybe I can help you out. There is an API that can be used to leverage this stuff.
.pat styles
Thanks for the reply,
I think that I actually found a solution, by using SymSrvGetFileIndexes
API plus some “workarounds”. After some experimenting, I found, that for
.PDB files it used both a GUID (or some PDB signature) and a Val1 value
returned by the API. For .SYS and other files it returns only a DWORD in
the upper part of the GUID (timestamp?) and a Val1 value (filesize?).
Anyway, any clarification / confirmation, or a better API or example
would be greatly appreciated 
I have access to pretty huge older / various .SYS / .PDB collection that
I don’t want to insert into a local symbol store, but from time to time
I need them for different reasons (like bugcheck analysis). When I issue
a !sym noisy and a .reload /f XXX.sys, I can easily see the hash of the
file requested by WinDBG, but without loading all the stuff into a local
symbol store I can’t select the proper .SYS / .PDB or tell if one
exists. However, with the above “workaround” I have created an ordered
list with all the “hash” values and the corresponding files, and thus, I
can very quickly lookup the proper .SYS / .PDB.
Sandor
You are currently subscribed to windbg as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com