INPUT: cmd.exe
OUTPUT: c:\windows\system32\cmd.exe
Based on that example, SearchPath() is all what you'll need. But if for some reason you plan to search in any folder, you could use FindFirstFile()/FindNextFile() and a recursive search routine.
FindExecutable() is used to find file associations. You know, passing a TXT file will return Notepad, etc.
Hope this helps.