&NumHandles,\r
&DriverHealthHandles\r
);\r
+\r
//\r
- // If there are no drivers installed driver health protocol\r
+ // If there are no drivers installed driver health protocol, do not create driver health entry in UI\r
//\r
- if (NumHandles == 0) {\r
- HiiSetString (HiiHandle, STRING_TOKEN (STR_DM_DRIVER_HEALTH_TITLE), GetStringById (STRING_TOKEN (STR_EMPTY_STRING)), NULL);\r
- HiiSetString (HiiHandle, STRING_TOKEN (STR_DRIVER_HEALTH_ALL_HEALTHY), GetStringById (STRING_TOKEN (STR_EMPTY_STRING)), NULL);\r
- } else {\r
+ if (NumHandles != 0) {\r
+ //\r
+ // If driver health protocol is installed, create Driver Health subtitle and entry\r
+ //\r
+ HiiCreateSubTitleOpCode (StartOpCodeHandle, STRING_TOKEN (STR_DM_DRIVER_HEALTH_TITLE), 0, 0, 0);\r
+ HiiCreateActionOpCode (\r
+ StartOpCodeHandle, // Container for dynamic created opcodes\r
+ DEVICE_MANAGER_KEY_DRIVER_HEALTH, // Question ID\r
+ STRING_TOKEN(STR_DRIVER_HEALTH_ALL_HEALTHY), // Prompt text\r
+ STRING_TOKEN(STR_DRIVER_HEALTH_STATUS_HELP), // Help text\r
+ EFI_IFR_FLAG_CALLBACK, // Question flag\r
+ 0 // Action String ID\r
+ );\r
+\r
//\r
// Check All Driver health status\r
//\r
// \r
// Device Manager formset.\r
// \r
-// Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
+// Copyright (c) 2004 - 2010, Intel Corporation. <BR>\r
// All rights reserved. This program and the accompanying materials\r
// are licensed and made available under the terms and conditions of the BSD License\r
// which accompanies this distribution. The full text of the license may be found at\r
\r
label LABEL_DEVICES_LIST;\r
label LABEL_END;\r
- \r
- subtitle text = STRING_TOKEN(STR_LAST_STRING);\r
- subtitle text = STRING_TOKEN(STR_DM_DRIVER_HEALTH_TITLE); \r
- \r
- text\r
- help = STRING_TOKEN(STR_DRIVER_HEALTH_STATUS_HELP),\r
- text = STRING_TOKEN(STR_DRIVER_HEALTH_ALL_HEALTHY),\r
- text = STRING_TOKEN(STR_LAST_STRING),\r
- flags = INTERACTIVE,\r
- key = DEVICE_MANAGER_KEY_DRIVER_HEALTH; \r
\r
subtitle text = STRING_TOKEN(STR_EMPTY_STRING);\r
\r