Extensible Firmware Interface Specification
202 12/12/00 Version 1.02
10.2.9 EFI_FILE.SetInfo()
Summary
Sets information about a file.
Prototype
EFI_STATUS
(EFIAPI *EFI_FILE_SET_INFO) (
IN EFI_FILE *This,
IN EFI_GUID *InformationType,
IN UINTN BufferSize,
OUT VOID *Buffer
);
Parameters
This A pointer to the EFI_FILE instance that is the file handle the
information is for. Type EFI_FILE is defined in Section 10.2.
InformationType The type identifier for the information being set. Type EFI_GUID is
defined in Chapter 3. See Section 10.2.11 and10.2.12 for the related
GUID definitions.
BufferSize The size, in bytes, of Buffer.
Buffer A pointer to the data buffer to write. The buffers type is indicated by
InformationType.
Description
The SetInfo() function sets information of type InformationType on the requested file.
Status Codes Returned
EFI_SUCCESS The information was set.
EFI_UNSUPPORTED The InformationType is not known.
EFI_NO_MEDIA The device has no medium.
EFI_DEVICE_ERROR The device reported an error.
EFI_VOLUME_CORRUPTED The file system structures are corrupted.
EFI_WRITE_PROTECTED The file or medium is write protected.
EFI_ACCESS_DENIED The file was opened read-only.
EFI_VOLUME_FULL The volume is full.
EFI_BAD_BUFFER_SIZE BufferSize is smaller than the size of the type
indicated by InformationType.