Hi Carsey.
So...

I saw the Load.c code (
UDK2014.SP1/ShellPkg/Library/UefiSHellLevel2COmmandsLib/Load.c)

LoadDriver(
  IN CONST CHAR16   *FileName,
  IN CONST BOOLEAN  Connect
  )
{

   ....
   ....
   ....

   //Convert to DEVICE_PATH

   FilePath = gEfiShellProtocol->GetDevicePathFromFilePath(FileName);

   ...
   ...
   ...
  Status = gBS->LoadImage(
    FALSE,
    gImageHandle,
    FilePath,
    NULL,
    0,
    &LoadedDriverHandle);


}


My question is:

How can i convert CHAR16 to DevicePath using Protocol of the UEFI Spec,
without SHELL Spec ?


I thought in to use any function of the DEVICE_PATH_PROTOCOL, but doesn't
worked!


Can you help me?

Att.
Vieira


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to