Home |
RTTarget-32 Programming Manual Function RTBootRM and RTBootPM Function RTTUefiBootSuccess System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTTUefiBootSuccessFunction RTTUefiBootSuccess can be used to update the boot status recorded in the UEFI boot .ini file used to boot the application to Success: int RTTUefiBootSuccess(const char * Drive); ParametersDriveThis parameter specifies the disk drive from which the program was booted. If this parameter is NULL, the function will attempt to determine the drive automatically. return value0 on failure and a value > 0 on success. RTTUefiBootSuccess requires the file system RTFiles-32 with a device list with device flag RTF_DEVICE_GPT_SYSPART or RTF_DEVICE_GPT_ALLPART set. It should only be called when the application was actually booted (and not downloaded by the debugger) and the status in the boot .ini file was originally set to Success. Example:if (!IsDebuggerPresent()) RTTUefiBootSuccess(NULL); Should the function fail, it will display an error message. Typical errors could be that the boot device was not found or the boot status was something other than Started.
|