I have tried repeating the ShellExecute without success, and I have tried it with SW_SHOW (and SW_SHOWMAXIMIZED and SW_SHOWNORMAL), but again without success. I have tried testing for errors with code like this:
if ShellExecute(0, NIL, PChar('c:\temp\test.pdf'), PChar(''), PChar('')...