本文介绍了我如何在UEFI驱动程序中设置固件环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Windows应用程序中,我具有GetFirmwareEnvironmentVariableA
函数来读取固件环境变量.有什么方法可以在uefi驱动程序中为此变量写一些东西,并稍后在Windows中从中读取?
In a Windows application, I have a GetFirmwareEnvironmentVariableA
function to read a firmware environment variable. Is there any way to write something in this variable in uefi driver and read from it later in Windows?
推荐答案
设置NVRAM变量的函数称为SetVariable(),可通过EFI_RUNTIME_SERVICES表供UEFI驱动程序使用.
The function to set an NVRAM variable is called SetVariable() and is available to UEFI drivers via EFI_RUNTIME_SERVICES table.
要了解有关其界面和用法的更多信息,请阅读 UEFI 2.6规范.
To know more about it's interface and usage, read chapter 7.2 Variable Services of the UEFI 2.6 specification.
这篇关于我如何在UEFI驱动程序中设置固件环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!