1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <Library/UefiLib.h> #include <Library/SimpleLibrary.h> UINTN Plus2(UINTN number) { return number+2; } EFI_STATUS EFIAPI SimpleLibraryConstructor( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) { Print(L"Hello from library constructor!\n"); return EFI_SUCCESS; }