Oh please, dont get me started on the general outline of the system.
The general outline:
The system itself uses a 3rd party business process application. It serves html pages using a dll file thats hooked in IIS. In order to handle the processes action files are called that are made up of "ProcessScripts". These scripts are fun, because they use a script no one really knows! Luckily, its possible to place Visual Basic Script in these files!
So, to get the cached list, the DLL forwards the call to the ProcesScript, that in turn calls the Visual Basic script, where there is an Object created to get the lists (from a external dll), and then in the dll the DataSet created by the above function is changed to a recordset (because VBS doesnt support DataSets!) and then returned. And THEN we have where we are :(
A enum would be nice i guess..