EFI_STATUS EFIAPI FatOpen ( IN EFI_FILE_PROTOCOL *FHand, OUT EFI_FILE_PROTOCOL **NewHandle, IN CHAR16 *FileName, IN UINT64 OpenMode, IN UINT64 Attributes ) /*++ Routine Description: Implements Open() of Simple File System Protocol. Arguments: FHand - File handle of the file serves as a starting reference point. NewHandle - Handle of the file that is newly opened. FileName - File name relative to FHand. OpenMode - Open mode. Attributes - Attributes to set if the file is created. Returns: EFI_INVALID_PARAMETER - The FileName is NULL or the file string is empty. The OpenMode is not supported. The Attributes is not the valid attributes. EFI_OUT_OF_RESOURCES - Can not allocate the memory for file string. EFI_SUCCESS - Open the file successfully. Others - The status of open file. --*/ { return FatOpenEx (FHand, NewHandle, FileName, OpenMode, Attributes, NULL); }
/** Implements Open() of Simple File System Protocol. @param FHand - File handle of the file serves as a starting reference point. @param NewHandle - Handle of the file that is newly opened. @param FileName - File name relative to FHand. @param OpenMode - Open mode. @param Attributes - Attributes to set if the file is created. @retval EFI_INVALID_PARAMETER - The FileName is NULL or the file string is empty. The OpenMode is not supported. The Attributes is not the valid attributes. @retval EFI_OUT_OF_RESOURCES - Can not allocate the memory for file string. @retval EFI_SUCCESS - Open the file successfully. @return Others - The status of open file. **/ EFI_STATUS EFIAPI FatOpen ( IN EFI_FILE_PROTOCOL *FHand, OUT EFI_FILE_PROTOCOL **NewHandle, IN CHAR16 *FileName, IN UINT64 OpenMode, IN UINT64 Attributes ) { return FatOpenEx (FHand, NewHandle, FileName, OpenMode, Attributes, NULL); }