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 />

Related Definitions<br />

typedef UINT16 RELOFST<br />

typedef UINT16 STRING_REF<br />

RELOFST is a 16-bit word offset relative to the start of the encompassing String Pack structure, thus<br />

providing position independence for the entire structure.<br />

STRING_REF is a variable that can contain a STRING_TOKEN. When used in programs, string<br />

tokens are fundamentally constants.<br />

typedef UINTN EFI_HII_HANDLE;<br />

typedef CHAR16 * EFI_STRING;<br />

typedef UINT16 EFI_FORM_ID;<br />

typedef UINT16 EFI_FORM_LABEL;<br />

//<br />

// The following types are currently defined:<br />

//<br />

#define EFI_HII_FONT 1<br />

#define EFI_HII_STRING 2<br />

#define EFI_HII_IFR 3<br />

#define EFI_HII_KEYBOARD 4<br />

typedef struct {<br />

UINT32 Length;<br />

UINT16 Type;<br />

} EFI_HII_PACK_HEADER;<br />

//<br />

// A string package is used to localize strings to a particular<br />

// language. The package is associated with a particular driver<br />

// or set of drivers. Tools are used to associate tokens with<br />

// string references in forms and in programs. These tokens are<br />

// language agnostic. When paired with a language pack (directly<br />

// or indirectly), the string token resolves into an actual<br />

// UNICODE string.<br />

//<br />

//<br />

// LanguageNameString The string containing one or more ISO 639-2<br />

// three character designator of the language or languages whose<br />

// translations are contained in this language pack. The first<br />

// designator indicates the primary language while the others are<br />

// secondary languages.<br />

//<br />

// PrintableLanguageName Contains the offset into this structure<br />

48

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

Saved successfully!

Ooh no, something went wrong!