SetupDesignGuide.pdf - Firmware Encoding Index
SetupDesignGuide.pdf - Firmware Encoding Index
SetupDesignGuide.pdf - Firmware Encoding Index
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.10 EFI_HII_PROTOCOL.GetLine()<br />
Summary<br />
This function allows a program to extract a part of a string of not more than a given width. With<br />
repeated calls, this allows a calling program to extract “lines” of text that fit inside columns. The effort<br />
of measuring the fit of strings inside columns is localized to this call.<br />
Prototype<br />
EFI_STATUS<br />
(EFIAPI *EFI_HII_GET_LINE) (<br />
IN EFI_HII_PROTOCOL *This,<br />
IN EFI_HII_HANDLE Handle,<br />
IN STRING_REF Token,<br />
IN OUT UINT16<br />
*<strong>Index</strong>,<br />
IN UINT16 LineWidth,<br />
IN CHAR16 *LanguageString,<br />
IN OUT UINT16<br />
*BufferLength,<br />
OUT EFI_STRING *StringBuffer<br />
);<br />
Parameters<br />
This<br />
Handle<br />
Token<br />
<strong>Index</strong><br />
LineWidth<br />
LanguageString<br />
BufferLength<br />
StringBuffer<br />
A pointer to the EFI_HII_PROTOCOL instance.<br />
Handle on which the string resides.<br />
The string token assigned to the string.<br />
On input, the offset into the string where the line is to start. On<br />
output, the index is updated to point to beyond the last character<br />
returned in the call. The interface is designed so that repeated calls<br />
will fill the buffer with subsequent parameters.<br />
The maximum width of the line in units of narrow glyphs. Specific<br />
line breaks (as in the case of two carriage returns) are still honored<br />
resulting in separate lines. The buffer is padded to the length in<br />
narrow spaces.<br />
Pointer to a NULL-terminated string containing a single ISO-639-2<br />
language identifier, indicating the language to print. If the<br />
LanguageString is empty (starts with a NULL) the default system<br />
language will be used to determine the language.<br />
Pointer to the Length of the StringBuffer. If the status reports<br />
that the buffer width is too small, this parameter is filled with the<br />
length of the buffer needed.<br />
The buffer designed to receive the characters in the string.<br />
Description<br />
62