aboutsummaryrefslogtreecommitdiffstats
path: root/Lessons/Lesson_Checkbox/UefiLessonsPkg/HIIFormCheckbox/Form.vfr
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2022-02-24 17:01:26 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2022-02-24 17:01:26 +0300
commitfa475827c119bad8a4bda093c102721fcf548cf9 (patch)
treefc590a0bbbcba8fc93b139eb2ab88717f9883590 /Lessons/Lesson_Checkbox/UefiLessonsPkg/HIIFormCheckbox/Form.vfr
parent03fd5898331a52003250ca2e21bbd5f1452a1dbd (diff)
downloadUEFI-Lessons-fa475827c119bad8a4bda093c102721fcf548cf9.tar.gz
UEFI-Lessons-fa475827c119bad8a4bda093c102721fcf548cf9.tar.bz2
UEFI-Lessons-fa475827c119bad8a4bda093c102721fcf548cf9.zip
Temporary rename draft for HII checkbox lesson
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons/Lesson_Checkbox/UefiLessonsPkg/HIIFormCheckbox/Form.vfr')
-rw-r--r--Lessons/Lesson_Checkbox/UefiLessonsPkg/HIIFormCheckbox/Form.vfr25
1 files changed, 25 insertions, 0 deletions
diff --git a/Lessons/Lesson_Checkbox/UefiLessonsPkg/HIIFormCheckbox/Form.vfr b/Lessons/Lesson_Checkbox/UefiLessonsPkg/HIIFormCheckbox/Form.vfr
new file mode 100644
index 0000000..780790e
--- /dev/null
+++ b/Lessons/Lesson_Checkbox/UefiLessonsPkg/HIIFormCheckbox/Form.vfr
@@ -0,0 +1,25 @@
+#include <Uefi/UefiMultiPhase.h>
+
+#define FORMSET_GUID {0xef2acc91, 0x7b50, 0x4ab9, {0xab, 0x67, 0x2b, 0x4, 0xf8, 0xbc, 0x13, 0x5e}}
+
+formset
+ guid = FORMSET_GUID,
+ title = STRING_TOKEN(FORMSET_TITLE),
+ help = STRING_TOKEN(FORMSET_HELP),
+
+ efivarstore UINT8,
+ attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE,
+ name = HIIFormCheckboxEfiVarstore,
+ guid = FORMSET_GUID;
+
+ form
+ formid = 1,
+ title = STRING_TOKEN(FORMID1_TITLE);
+
+ checkbox
+ varid = HIIFormCheckboxEfiVarstore,
+ prompt = STRING_TOKEN(CHECKBOX_PROMPT),
+ help = STRING_TOKEN(CHECKBOX_HELP),
+ endcheckbox;
+ endform;
+endformset;