Finds the next set of file objects whose names match the specification in a previous call to DosFindFirst or DosFindNext.
#define INCL_DOSFILEMGR #include <os2.h> HDIR hDir; /* The handle of the directory. */ PVOID pfindbuf; /* The address of the directory search information structure. */ ULONG cbfindbuf; /* The length, in bytes, of pfindbuf. */ PULONG pcFilenames; /* Pointer to the number of entries. */ APIRET ulrc; /* Return Code. */ ulrc = DosFindNext(hDir, pfindbuf, cbfindbuf, pcFilenames);