Search the provided paths in order for the specified filename.
The first match is returned.
- Parameters
-
pszPath | [ in ] A pointer to an NULL terminated string containing the pipe ("|") delimited list of file system paths to search. For example "/etc/product|/opt/product|/var/run". Paths that do not exist are ignored. |
pszFilename | [ in ] A pointer to a NULL terminated P6WCHAR contianing the filename to search the specified path for. |
pBuffer | [ out ] The address of a P6WCHAR buffer in which on success will be placed the found path/filename. |
cBuffer | [ in ] The size of pBuffer in characters. |
- Returns
Success | P6R::eOk | the pathname/filename of the match is returned in pBuffer |
Failure | P6R::eInvalidArg | A required argument is NULL or otherwise invalid |
P6R::eNotInitialized | The initialize() method was not called successfully before calling this method. |
P6R::eTooSmall | The supplied buffer is too small. Try using using a buffer that is at least P6MAXPATH charaters long |
P6R::eNotFound | The specified file was not found in any of the specified paths. |
Any valid P6ERR | |