4 Copyright (c) 2004 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include "FrontPage.h"
19 EFI_HII_HANDLE gStringPackHandle
;
21 EFI_GUID mBdsStringPackGuid
= {
22 0x7bac95d3, 0xddf, 0x42f3, 0x9e, 0x24, 0x7c, 0x64, 0x49, 0x40, 0x37, 0x9a
26 Initialize HII global accessor for string support
28 @retval EFI_SUCCESS String support initialize success.
32 InitializeStringSupport (
37 EFI_HANDLE DriverHandle
;
38 EFI_HII_PACKAGE_LIST_HEADER
*PackageList
;
40 Status
= gBS
->LocateProtocol (&gEfiHiiDatabaseProtocolGuid
, NULL
, (VOID
**) &gHiiDatabase
);
41 if (EFI_ERROR (Status
)) {
46 // Create driver handle used by HII database
48 Status
= HiiLibCreateHiiDriverHandle (&DriverHandle
);
49 if (EFI_ERROR (Status
)) {
53 PackageList
= HiiLibPreparePackageList (1, &mBdsStringPackGuid
, &BdsDxeStrings
);
54 ASSERT (PackageList
!= NULL
);
56 Status
= gHiiDatabase
->NewPackageList (
63 FreePool (PackageList
);
68 Get string by string id from HII Interface
73 @retval CHAR16 * String from ID.
74 @retval NULL If error occurs.
85 HiiLibGetStringFromHandle (gStringPackHandle
, Id
, &String
);