I downloaded both tools, thanks. The errors in "NtStatusToText" I have never seen before. Which FPC function (or variable?) does return them?
You're welcome. As far as what NtStatusToText does, there is no function in either FPC or the Windows API that returns the text associated with an NTSTATUS. That utility shows the result of a copy/paste of the MSDN page that has the information, reformatted using an AWK script to produce an array (as a global variable) of NTSTATUS/<textual meaning> pairs. A simple loop through that array loads the listbox which displays them.
It would be nice if you could copy the messages to the clipboard or save them into a file, e.g. then you could search in them or compare them with other lists...
I haven't needed to do that but, I can see that could be occasionally useful. You've just given me a reason to finish a devilish hack that enables a GUI app to behave as if it were a console app. Specifically, its purpose is to allow redirecting the GUI's output to a file just as it is normally done with a console app. IOW, it would allow doing this from a command line
WindowsGetLastError > somefilenameofyourchoice
I'm fairly close to getting it to work but, it's just been a "toy" project so far. I'll try to spend some time on it and, once I get it working, post an updated version of that utility. Don't hold your breath though, as I said, it's a "toy project" I started because I wanted to see if it was possible to make an app that could behave as both, a gui app and a console app.