Home |
Media Transfer Protocol Class Driver Function USBMTPFindNextFile Function USBMTPGetFileProperty Function USBMTPSetFileProperty |
Function USBMTPFindNextFileUSBMTPFindNextFile continues a search of a directory: int USBMTPFindNextFile(USBMTPFindData * FindData, USBMTPHandle * Handle); ParametersFindDataPointer to a variable of type USBMTPFindData which must have been initialized by function USBMTPFindFirstFile. HandlePointer to a the handle to be returned. return valueIf successful, a value >= RTU_SUCCESS is returned, otherwise, a negative error code. If a file is found, the returned handle can be used with function USBMTPGetFileInfo to get further data about the file. To continue the search, call function USBMTPFindNextFile again. When the search is finished, function USBMTPFindCloseFile must be called to free all resources associated with the search. Functions Tree, Dir, and FindFile of demo program MTPDemo show how this function is used.
|