3 Copyright (c) 2004 - 2008, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
24 #include "FrontPage.h"
26 EFI_HII_HANDLE gStringPackHandle
;
28 EFI_GUID mBdsStringPackGuid
= {
29 0x7bac95d3, 0xddf, 0x42f3, 0x9e, 0x24, 0x7c, 0x64, 0x49, 0x40, 0x37, 0x9a
33 InitializeStringSupport (
39 Initialize HII global accessor for string support
45 EFI_SUCCESS - String support initialize success.
50 EFI_HANDLE DriverHandle
;
51 EFI_HII_PACKAGE_LIST_HEADER
*PackageList
;
53 Status
= gBS
->LocateProtocol (&gEfiHiiDatabaseProtocolGuid
, NULL
, (VOID
**) &gHiiDatabase
);
54 if (EFI_ERROR (Status
)) {
59 // Create driver handle used by HII database
61 Status
= HiiLibCreateHiiDriverHandle (&DriverHandle
);
62 if (EFI_ERROR (Status
)) {
66 PackageList
= HiiLibPreparePackageList (1, &mBdsStringPackGuid
, &BdsDxeStrings
);
67 ASSERT (PackageList
!= NULL
);
69 Status
= gHiiDatabase
->NewPackageList (
76 FreePool (PackageList
);
87 Get string by string id from HII Interface
93 CHAR16 * - String from ID.
94 NULL - If error occurs.
101 HiiLibGetStringFromHandle (gStringPackHandle
, Id
, &String
);