Specifications
18 Version 2.0
EFI_SHELL_PROTOCOL.FindFiles()
Summary
Find files that match a specified pattern.
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_SHELL_FIND_FILES)(
IN CONST CHAR16 *FilePattern,
OUT EFI_SHELL_FILE_INFO **FileList
);
Parameters
FilePattern
Points to a null-terminated shell file path, including wildcards.
FileList
On return, points to the start of a file list containing the names of all matching
files or else points to NULL if no matching files were found.
Description
This function searches for all files and directories that match the specified
FilePattern. The FilePattern can contain wild-card characters. The resulting file
information is placed in the file list FileList.
The files in the file list are not opened. The OpenMode field is set to 0 and the FileInfo
field is set to NULL.
Status Codes Returned
EFI_SUCCESS Files found.
EFI_NOT_FOUND No files found.
EFI_NO_MEDIA The device has no media
EFI_DEVICE_ERROR The device reported an error
EFI_VOLUME_CORRUPTED The file system structures are corrupted










