There's code in the code archives that reads the windows INI file, but I don't trust that method and the code is overly complex.
How can I find out the colors of various interface elements with function calls?
How can I find out the colors of various interface elements with function calls?