I posted a while back on the list how to do this. Search for safeopenprotocol.

You can use the driver binding protocol to make it safe, but you need to wrap 
the protocol access in a library for the application.

Sent from my iPhone

> On Jun 10, 2014, at 8:31 PM, Evgeny Yakovlev <[email protected]> wrote:
> 
> Hi, 
> 
> Is it possible for UEFI application to open a protocol and receive some kind 
> of a notification is about to be disconnected? I know that drivers can use 
> BY_DRIVER and receve driver binding Stop(), but what about applications?
> 
> What i am trying to do is work with removable media and detect when UsbIo 
> protocol i got in an application is about to be removed.
> 
> Thanks
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to