Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
985 B

/*++
Copyright (c) 1998 Intel Corporation
Module Name:
hello.c
Abstract:
Author:
Revision History
--*/
#include "efi.h"
EFI_STATUS
InitializeHelloApplication (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
UINTN Index;
/*
* Send a message to the ConsoleOut device.
*/
SystemTable->ConOut->OutputString(SystemTable->ConOut,
L"Hello application started\n\r");
/*
* Wait for the user to press a key.
*/
SystemTable->ConOut->OutputString(SystemTable->ConOut,
L"\n\r\n\r\n\rHit any key to exit this image\n\r");
SystemTable->BootServices->WaitForEvent (1, &(SystemTable->ConIn->WaitForKey), &Index);
SystemTable->ConOut->OutputString(SystemTable->ConOut,L"\n\r\n\r");
/*
* Exit the application.
*/
return EFI_SUCCESS;
}