On Aug 10, 2012, at 9:58 AM, Tony wrote: > Hi Andrew, > So if I plan on using the ConsSplitterDxe, do I have to bind my application > to > this driver?
No there is no dynamic linking in EFI. Communicating between modules is done via Protocols. A protocol is a C data structure, that often contains member function that is named by a GUID and sits on a handle. You want to go after the systems primary console and that can be found in the EFI_SYSTEM_TABLE that is passed in to your entry point. The UefiBootServicesTableLib will place it in a global for you so you want to look at: gST-> ConIn gST->ConOut gST->StdErr If the system has a console splitter this will be the primary console, if there is no console splitter then this is still the primary console. So for example (if my memory is good...): gST->ConOut->OutputString (gST->ContOut, L"Hello World/r/n"); > Tony > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel