/* Set the platform secure boot mode into "Custom" or "Standard" mode. */
EFI_STATUS EFIAPI SetSecureBootMode(IN UINT8 SecureBootMode)
/* Set the platform secure boot mode into "Custom" or "Standard" mode. */
EFI_STATUS EFIAPI SetSecureBootMode(IN UINT8 SecureBootMode)
{
  return gRT->SetVariable (
                EFI_CUSTOM_MODE_NAME,
                &gEfiCustomModeEnableGuid,
                EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,
                sizeof (UINT8),
                &SecureBootMode
                );
}