For example, there are two files with the same name: sample.txt
First file placed to:
Second file placed to:
C:\ReactOS\sample.txt (C:\Windows\sample.txt - for windows)
I use ShellExecuteEx with this parameters:
If "C:\ReactOS\sample.txt" not exist then ROS open "C:\sample.txt".
This is the wrong file search order. ShellExecuteEx must first perform a search in lpDirectory if specified.