The FindExecutable function retrieves the name and handle to the executable (.EXE) file associated with the specified filename.
HINSTANCE FindExecutable(
LPCTSTR lpFile, // pointer to string for filename
LPCTSTR lpDirectory, // pointer to string for default directory
LPTSTR lpResult // pointer to buffer for string for executable file on return
);