Group: Shell Lightweight Utility APIs -- Path Functions - Library: netapi32
How to assemble an array of strings and pass it to external function
BOOL PathFindOnPath(
LPTSTR pszFile,
LPCTSTR *ppszOtherDirs
);
DECLARE INTEGER PathFindOnPath IN shlwapi;
STRING @ pszFile,;
STRING @ ppszOtherDirs
pszFile [in] Pointer to a null-terminated string of maximum length MAX_PATH that contains the file name for which to search. If the search is successful, this parameter is used to return the fully qualified path name.
ppszOtherDirs [in] Optional null-terminated array of directories to be searched first.
Returns TRUE if successful, or FALSE otherwise.