doing this in plain SAL is not much fun. You will have to use an array. I
tried this once and ran into trouble when there were more than let's say
25000 entries. If using C++ is an option you could use some of the MFC map
implementations. You will need just a few lines of code.