How i can set firmware environment variable in UEFI driver

ε祈祈猫儿з 提交于 2019-12-13 04:15:52

问题


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?


回答1:


The function to set an NVRAM variable is called SetVariable() and is available to UEFI drivers via EFI_RUNTIME_SERVICES table.

To know more about it's interface and usage, read chapter 7.2 Variable Services of the UEFI 2.6 specification.



来源:https://stackoverflow.com/questions/54557111/how-i-can-set-firmware-environment-variable-in-uefi-driver

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!