Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDir::searchPathbstr ( const P6WCHAR pszPath,
const P6BWCSTR pbsFilename,
P6WCHAR pBuffer,
P6SIZE  cBuffer 
)
pure virtual

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.
pbsFilename[ in ] A P6BWCSTR which defines the filename to search for in the specified file system path.
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
SuccessP6R::eOkthe pathname/filename of the match is returned in pBuffer
FailureP6R::eInvalidArgA required argument is NULL or otherwise invalid
P6R::eNotInitializedThe initialize() method was not called successfully before calling this method.
P6R::eTooSmallThe supplied buffer is too small. Try using using a buffer that is at least P6MAXPATH charaters long
P6R::eNotFoundThe specified file was not found in any of the specified paths.
Any valid P6ERR