beautypg.com

Efi_file.setinfo(), See the, Setinfo() – Intel Extensible Firmware Interface User Manual

Page 391: Func, Efi_file.setinfo() summary, Prototype, Parameters, Description, Status codes returned

background image

Protocols

— Bootable Image Support

Version 1.10

12/01/02

11-31

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,

IN

VOID

*Buffer

);

Parameters

This

A pointer to the

EFI_FILE

instance that is the file handle the

information is for. See the type

EFI_FILE

protocol description.

InformationType

The type identifier for the information being set. Type

EFI_GUID

is

defined in Chapter 5. See the

EFI_FILE_INFO

and

EFI_FILE_SYSTEM_INFO

descriptions for the related GUID

definitions.

BufferSize

The size, in bytes, of

Buffer

.

Buffer

A pointer to the data buffer to write. The buffer’s 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

.