12.07.2015 Views

EDK II Module Writer's Guide - Intel

EDK II Module Writer's Guide - Intel

EDK II Module Writer's Guide - Intel

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Create H<strong>II</strong> driver handle, paramter DriverHandle will hold the// returned new handle.// HiiLibCreateHiiDriverHandle defined in UefiHiiLib library class.//Status = HiiLibCreateHiiDriverHandle(&DriverHandle);//// Prepare H<strong>II</strong> package list, parameter InventoryBin is the VFR formdata// HiiLibPreparePackageList defined in UefiHiiLib library class//PackageList = HiiLibPreparePackageList (2,&mInventoryGuid,InventoryBin,DriverSampleStrings);ASSERT (PackageList != NULL);//// Create package into H<strong>II</strong> database via EFI_H<strong>II</strong>_PROTOCOL->NewPackageList//Status = gHiiDatabase->NewPackageList (gHiiDatabase,PackageList,DriverHandle,&HiiHandle);3.6.2 Using Unicode Strings3.6.2.1 Create .uni fileThe unicode strings are put into the .uni file and referenced in the module’s INF[Sources] section like others C files. The .uni file is encoding UCS-2 with a 0xFFFEBOM header. For example:31

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

Saved successfully!

Ooh no, something went wrong!