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.8 EFI_HII_PROTOCOL.GetSecondaryLanguages()<br />

Summary<br />

This function allows a program to determine which secondary languages are supported on a given<br />

handle for a given primary language.<br />

Prototype<br />

EFI_STATUS<br />

(EFIAPI *EFI_HII_GET_SEC_LANGUAGES) (<br />

IN EFI_HII_PROTOCOL<br />

*This,<br />

IN EFI_HII_HANDLE<br />

Handle,<br />

IN CHAR16<br />

*PrimaryLanguage,<br />

OUT EFI_STRING<br />

*LanguageString<br />

);<br />

Parameters<br />

This<br />

Handle<br />

PrimaryLanguage<br />

LanguageString<br />

A pointer to the EFI_HII_PROTOCOL instance.<br />

Handle on which the strings reside.<br />

Pointer to a NULL-terminated string containing a single ISO-639-2<br />

language identifier, indicating the primary language.<br />

A string allocated by GetSecondaryLanguages containing a<br />

list of all secondary languages registered on the handle. The routine<br />

will not return the 3-spaces language identifier used in other<br />

functions to indicate non-language-specific strings, nor will it return<br />

the primary language. This function succeeds but returns a NULL<br />

LanguageString if there are no secondary languages associated<br />

with the input Handle and PrimaryLanguage pair.<br />

Description<br />

Each string package has associated with it a single primary language and zero or more secondary<br />

languages. This routine returns the secondary languages associated with a string package. The string<br />

package is identified by the package list handle and the (currently three character ISO-639-2 primary<br />

language identifier.<br />

Status Codes Returned<br />

EFI_SUCCESS<br />

EFI_INVALID_PARAMETER<br />

Correctly returned the LanguageString.<br />

Unknown handle.<br />

59

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

Saved successfully!

Ooh no, something went wrong!