How can i write code which add boot option from UEFI driver programmatically? 1) I try to add "Boot0001" variable:
ZeroMem(Data, 2048);
StrCpy(Data, L"Boot0001");
DataSize = StrLen(Data) * 2;
Status = gRT->SetVariable(L"Boot0001", &dGuid, Attr, DataSize, &Data);
2) I need add entry to "BootOrder" variable. But i can't understand how. Ideally, i want to add boot option boot from sample efi application.