Extremely simple (U)EFI program thought to be a working start point to any future efi applications.
Mainly based on the very good tutorial at http://www.rodsbooks.com/efi-programming/index.html which you should visit to learn more about efi programming.