The HLAPI implements the Boot Control feature in the Boot Control API.
The available methods are described in the IBootControl interface.
Examples
These C# examples show how to use the Boot Control API (after connecting to the Intel AMT device).
Get the current boot control settings of the
platform
BootOptionsFlags bootOptions;
BootSource bootSource;
FirmwareVerbosityEnum FWVerbosity;
amt.BootControl.GetCurrentSettings(out bootSource, out bootOptions, out FWVerbosity);
Console.WriteLine("Current boot Options: " + bootOptions.ToString());
Console.Write("Current boot Source: " + bootSource.Source.ToString());
Console.WriteLine(". index: " + bootSource.Index.ToString());
Console.WriteLine("Current Firmware Verbosity: " + FWVerbosity.ToString());
Set the next boot to boot from CD/DVD
BootSource bootSource = new BootSource(BootSourceEnum.CdOrDvdBoot, 1);
amt.BootControl.SetNextBoot(bootSource);
To perform the actual boot, add a line of code from the Power feature. For example:
amt.Power.Reset();
Set the next boot to use Storage Redirection and
SOL, and boot to the BIOS (according to capabilities)
BootCapabilities bootCapabilities = amt.BootControl.BootCapabilities;
BootSource bootSource;
if (bootCapabilities.IDER)
bootSource = new BootSource(BootSourceEnum.IDERCD);
else
bootSource = new BootSource(BootSourceEnum.NONE);
BootOptionsFlags flags = BootOptionsFlags.NONE;
if (bootCapabilities.SOL)
flags |= BootOptionsFlags.UseSOL;
if (bootCapabilities.BiosSetup)
flags |= BootOptionsFlags.BiosSetup;
FirmwareVerbosityEnum FWverbosity = FirmwareVerbosityEnum.NONE;
if (bootCapabilities.FirmwareVerbosityVerbose)
FWverbosity = FirmwareVerbosityEnum.Verbose;
amt.BootControl.SetNextBoot(bootSource, flags, FWverbosity);
To perform the actual boot, add a line of code from the Power feature. For example:
amt.Power.Reset();
Clear the next boot setting
amt.BootControl.ClearBootOptions();
See Also: |
Copyright © 2006-2022, Intel Corporation. All rights reserved. |