A while ago, I had a discussion on a newsgroup about the reasons a programmer should call the correct API even if the same information were available elsewhere, in that case it was the paths of some special Windows folders, like Document & Settings or Program files. It was impossible to convince some programmers that calling the API
SHGetSpecialFolderLocation()or the newer
SHGetFolderPath()was the correct thing to do, instead of accessing the registry. A few days ago I found this blog post by Raymond Chen that explain exactly why you shouldn't. Although MS tried - too far IMHO - to allow bad written application to run, Vista is starting to change it. Time to check current application and proper implement the new ones. We mustn't be lazy, must read the documentation, and don't be afraid to change the way we were used to code.