Specifications

38 Version 2.0
If the file name is NUL, then the file handle that is returned refers to the standard NUL
file. If the OpenMode indicates EFI_FILE_MODE_READ, then EFI_INVALID_PARAMETER is
returned.
If return EFI_SUCCESS, the FileHandle is the opened file’s handle, else, the
FileHandle is NULL.
Status Codes Returned
EFI_SUCCESS The file was opened. FileHandle has the opened file’s handle.
EFI_INVALID_PARAMETER One of the parameters has an invalid value. FileHandle is NULL.
EFI_UNSUPPORTED Could not open the file path. FileHandle is NULL.
EFI_NOT_FOUND The specified file could not be found on the device or the file
system could not be found on the device. FileHandle is NULL.
EFI_NO_MEDIA The device has no medium. FileHandle is NULL.
EFI_MEDIA_CHANGED The device has a different medium in it or the medium is no
longer supported. FileHandle is NULL.
EFI_DEVICE_ERROR The device reported an error or can’t get the file path according
the
FileName. FileHandle is NULL.
EFI_VOLUME_CORRUPTED The file system structures are corrupted. FileHandle is NULL.
EFI_WRITE_PROTECTED An attempt was made to create a file, or open a file for write
when the media is write-protected. FileHandle is NULL.
EFI_ACCESS_DENIED The service denied access to the file. FileHandle is NULL.
EFI_OUT_OF_RESOURCES Not enough resources were available to open the file. FileHandle
is NULL.
EFI_VOLUME_FULL The volume is full. FileHandle is NULL.