Below function Call. 

gBS->OpenProtocol(
                                ImageHandle,
                                &gEfiShellProtocolGuid,
                                (VOID **)&tEfiShellProtocol,
                                ImageHandle,
                                NULL,
                                EFI_OPEN_PROTOCOL_GET_PROTOCOL
                               );

It looks like ImageHandle is not valid Imagehandle where the ShellProtocol is 
installed. We could try with LocateProtocol and check. 

Thanks,
Ramesh


________________________________________
From: Carsey, Jaben [[email protected]]
Sent: Friday, January 10, 2014 10:44 PM
To: [email protected]; [email protected]
Subject: Re: [edk2] How can I get Current Directory?

What API is returning 3?

-Jaben

-----Original Message-----
From: 남주영 [mailto:[email protected]]
Sent: Thursday, January 09, 2014 10:56 PM
To: [email protected]
Subject: [edk2] How can I get Current Directory?


Dear All,

I am developing application by using DuetPkgX64.dsc.
I want to know current directory of my program so I`m try to get  
EfiShellprotocol.
It return Error(3 : EFO_UNSUPPORT);
Is there other way to get current directory?

EFI_SHELL_PRTOCOL *tEfiShellProtocol = NULL; Status = gBS->OpenProtocol(
                                ImageHandle,
                                &gEfiShellProtocolGuid,
                                (VOID **)&tEfiShellProtocol,
                                ImageHandle,
                                NULL,
                                EFI_OPEN_PROTOCOL_GET_PROTOCOL
                               );

Thanks.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical 
Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel
The information contained in this message may be confidential and proprietary 
to American Megatrends, Inc.  This communication is intended to be read only by 
the individual or entity to whom it is addressed or by their designee. If the 
reader of this message is not the intended recipient, you are on notice that 
any distribution of this message, in any form, is strictly prohibited.  Please 
promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and 
then delete or destroy all copies of the transmission.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to