AnsweredAssumed Answered


Question asked by Gary Johnson on Sep 11, 2011
Latest reply on Sep 8, 2016 by OLIVIA CHRISTY VARGHESE

I want to be able to scroll through available files on a disk without knowing the file names beforehand.


I am trying to modify the MFSUG example, "List all files and subdirectories in a directory", by creating subroutines for both IO_IOCTL_FIND_FIRST_FILE and IO_IOCTL_FIND_NEXT_FILE.  For example, main() calls find_first_file() then subsequently calls find_next_file() each time I want to know the next file.


For some reason, MFS_SEARCH_DATA struct gets reset each time I call IO_IOCTL_FIND_NEXT_FILE so the required previous file is not saved.


Any ideas?


Thanks, gj