Alexander,
>But one problem still exists. In some cases I'm creating document file (.pdf or .rtf) before opening. And I cannot pass file name to FindExecutable because file not yet created. Adding of two dummy files to application is not a very good solution.
Sergey already made a good and *easy* suggestion.
You could also scan the registry keys under HKEY_CLASSES_ROOT. If you find an entry that matches the desired extension, there will be a registered application. There are two more API functions that could help, I've tried one, but couldn't get it to run.
IMO, creating a dummy file in the temp dir on the fly is a good, quick and easy solution.
Reagards,
Armin