DosFindFromName finds the next set of entries that match the criteria specified in a previous call to DosFindFirst, continuing a directory search from a given position.

#include <os2.h>

HDIR      hDir;         /*  The open directory handle associated with this search request. */
PVOID     pfindbuf;     /*  Pointer to the directory search structures. */
ULONG     cbBuf;        /*  Length, in bytes, the buffer returned in pfindbuf. */
PULONG    pcFileNames;  /*  Number of entries in the buffer returned in pfindbuf. */
ULONG     ulPosition;   /*  Starting position for search. */
PVOID     pszFileSpec;  /*  File name to start with. */
APIRET    rc;           /*  Return code. */

rc = DosFindFromName(hDir, pfindbuf, cbBuf,
       pcFileNames, ulPosition, pszFileSpec);


[Back: DosFindFromName]
[Next: DosFindFromName Parameter - hDir]