Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDir::enumerate ( const P6WCHAR pszDirectory,
P6DIRFLAGS  fFlags,
p6IEnumDirents **  ppEnum 
)
pure virtual

This methods returns an enumerator which is used to iterate through directory entries for the specified directory.

Parameters
pszDirectoryA pointer to a P6WCHAR string containing the directory path to enumerate. Wild cards are not allowed.
fFlagsFlags used to control the information returned during the enumeration. See P6R::P6DIRFLAGS.
ppEnumThe address of a P6R::p6IEnumDirents * in which will be placed a pointer to the newly created enumerator.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpszDirectory and/or ppEnum is NULL
P6R::eNotInitializedThe initialize() method was not called successfully before calling this method.
P6R::eNoMemoryThere was not enough memory available to complete the operation.
P6R::ePathNotFoundThe path specified could not be found.
P6R::eNotADirThe path specified was found, but is not a directory.
Any valid P6ERR.