Within an msstyles file the primary specification is basically a unicode INI file within one of the resources (well, there are a few ini files for different parts of the theme) Currently I'm extracting the ini file from resources into a temp file, and then using GetPrivateProfile* to retrieve values..which is a lot of work :) the fact its an ini file is really meaningless as I basically just enumerate every section/key and load it into an internal table. I would like to remove the need to dump the ini file into the file system then call a (large) number of GetPrivateProfile* functions..but I also don't want to duplicate ini file processing One possible solution would be to call the PROFILE_* functions (which are located in kernel/profile.c) directly which seem to work in a way that would make this very easy, but overall sounds like a very bad idea... I think I answered my own question, but feedback would be very welcome.
On October 15, 2003 08:09 pm, Kevin Koltzau wrote:
One possible solution would be to call the PROFILE_* functions (which are located in kernel/profile.c) directly which seem to work in a way that would make this very easy, but overall sounds like a very bad idea...
Well, it is, it breaks DLL separation if you invoke them outside kernel, which is Not Good (TM). Using the standard API is almost always better. -- Dimi.
Can you trace the native uxtheme and see how Microsoft did it? They should know the best way, after all.
participants (3)
-
Dimitrie O. Paun -
Kevin Koltzau -
Mike Hearn