uefi获取屏幕输入

来源:互联网 发布:阿里云服务器配置端口 编辑:程序博客网 时间:2024/05/01 04:12


EFI_STATUS EFIAPI UefiMain(
  IN EFI_HANDLE         ImageHandle,
  IN EFI_SYSTEM_TABLE    *SystemTable
)
{

 UINTN                            Index;
 EFI_INPUT_KEY                    key;


 SystemTable->BootServices->WaitForEvent(1,&(SystemTable->ConIn->WaitForKey),&Index);
 SystemTable->ConIn->ReadKeyStroke(SystemTable->ConIn,&key);
 Print(L"=== read<> %c ===",key.UnicodeChar);

 return EFI_SUCCESS;


}

0 0
原创粉丝点击