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
31 @retval EFI_SUCCESS String support initialize success.
35 InitializeStringSupport (
40 EFI_HANDLE DriverHandle
;
41 EFI_HII_PACKAGE_LIST_HEADER
*PackageList
;
43 Status
= gBS
->LocateProtocol (&gEfiHiiDatabaseProtocolGuid
, NULL
, (VOID
**) &gHiiDatabase
);
44 if (EFI_ERROR (Status
)) {
49 // Create driver handle used by HII database
51 Status
= HiiLibCreateHiiDriverHandle (&DriverHandle
);
52 if (EFI_ERROR (Status
)) {
56 PackageList
= HiiLibPreparePackageList (1, &mBdsStringPackGuid
, &BdsDxeStrings
);
57 ASSERT (PackageList
!= NULL
);
59 Status
= gHiiDatabase
->NewPackageList (
66 FreePool (PackageList
);
71 Get string by string id from HII Interface
76 @retval CHAR16 * String from ID.
77 @retval NULL If error occurs.
88 HiiLibGetStringFromHandle (gStringPackHandle
, Id
, &String
);