Question: error returned by createprocess (193 'createprocess' ' 1 is not a valid win32 application.')?
Answer: The most likely explanations for that error are: The file you are attempting to load is not an executable file. CreateProcess requires you to provide an executable file. If you wish to be able to open any file with its associated application then you need ShellExecute rather than CreateProcess .