Why do I get inconsistent results when I ask for the icon for the .. parent folder?

· Raymond Chen · Nov. 20, 2026, 7:22 p.m.
Summary
The blog post discusses an issue with inconsistent icons displayed for the parent folder in a file listing program when using the SHGetFileInfo function. The inconsistency occurs due to different current directory settings between the developer and the customer. The author recommends using the SHGFI_USEFILEATTRIBUTES flag to ensure the correct folder icon is retrieved, regardless of the actual path. Additionally, the post mentions 'psychic debugging' as a humorous term for when crucial information is omitted during problem-solving.