Ben -
In general, you should avoid using Key, since it is not UEFI standard. "Key" is
left over from Intel's Framework specification. It is accepted by some form
browsers, but not others.
Tim
From: Ben Schroeder [mailto:ben...@mellanox.com]
Sent: Monday, January 21, 2013 2:12 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] HII VFR forms - difference between key and questionid
Hi everyone,
I am unsure to what difference there is between key and questionid in some VFR
operators.
I understand in some situations 'key' field will act as questionid, like in
text operator. Questionid does not exist in EFI_IFR_TEXT, so it seems logical
that key will replace this field.
What about operators that have both questionid and key fields?
For instance, the numeric operator. Here is an example from the EDK:
Example1:
numeric varid = MyIfrNVData.GetDefaultValueFromCallBack,
questionid = 0x1240,
prompt = STRING_TOKEN(STR_DEFAULT_VALUE_FROM_CALLBACK_PROMPT),
help = STRING_TOKEN(STR_DEFAULT_VALUE_FROM_CALLBACK_HELP),
flags = DISPLAY_UINT_HEX | INTERACTIVE,
minimum = 0,
maximum = 255,
step = 1,
default = 18,
endnumeric;
Example2:
numeric varid = MyIfrNVData.DynamicRefresh,
prompt = STRING_TOKEN(STR_NUMERIC_MANUAL_PROMPT),
help = STRING_TOKEN(STR_NUMERIC_HELP0),
flags = INTERACTIVE,
key = 0x5678,
minimum = 0,
maximum = 0xff,
step = 0,
default = 0,
refresh interval = 3 // Refresh interval in seconds
endnumeric;
Both these examples come from the same VFR form. Why is key used in one case
and questionid in a different case?
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel