15.03.2015 Views

SetupDesignGuide.pdf - Firmware Encoding Index

SetupDesignGuide.pdf - Firmware Encoding Index

SetupDesignGuide.pdf - Firmware Encoding Index

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setup Design Guide<br />

DRAFT<br />

7.1.11 EFI_HII_PROTOCOL.GetForms()<br />

Summary<br />

This function allows a program to extract a form or form package that has previously been registered<br />

with the EFI HII database.<br />

Prototype<br />

EFI_STATUS<br />

(EFIAPI *EFI_HII_GET_FORMS) (<br />

IN EFI_HII_PROTOCOL *This,<br />

IN EFI_HII_HANDLE Handle,<br />

IN EFI_FORM_ID FormId,<br />

IN OUT UINT16<br />

*BufferLength,<br />

OUT UINT8 *Buffer<br />

);<br />

Parameters<br />

This<br />

Handle<br />

FormId<br />

BufferLength<br />

Buffer<br />

A pointer to the EFI_HII_PROTOCOL instance.<br />

Handle on which the form resides.<br />

The id of the form to return. If the id is zero, the entire form package<br />

is returned.<br />

On input, the length of the Buffer. On output, the length of the<br />

returned buffer, if the length was sufficient and, if it was not, the<br />

length that is required to fit the requested form(s).<br />

The buffer designed to receive the form(s).<br />

Description<br />

This function is used to extract a form or forms<br />

Status Codes Returned<br />

EFI_SUCCESS<br />

EFI_INVALID_PARAMETER<br />

EFI_NOT_FOUND<br />

EFI_BUFFER_TOO_SMALL<br />

Buffer filled with the requested forms.<br />

BufferLength updated.<br />

Unknown handle.<br />

A form on the requested handle cannot be found with the<br />

requested FormId.<br />

The buffer provided was not large enough to allow the<br />

form to be stored.<br />

64

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!