"Ann & Jason Edmeades" us@edmeades.me.uk writes:
Unfortunately I need to know if it's a console app or not, and hence call FindExecutable followed by SHGetFileInfo. These don't seem to report anything on the internal programs so I couldn't tell whether to wait for it to complete (eg xcopy) or let it run (eg notepad).
I'm patching it to assume worse case (run it synchronous) and just wait, unless you have any other suggestions, working on the theory this is a very rare case.
We could certainly fix SHGetFileInfo to do the right thing for builtins, using the same method we use for GetFileVersionInfo.