I am new to PB. My primary language is not US/UK. I am using Google Translate.
I am practicing writing code to distinguish whether Windows is booting using FW MBR or UEFI.
Code: Select all
Enumeration FIRMWARE_TYPE
#FirmwareTypeUnknown
#FirmwareTypeBios
#FirmwareTypeUefi
#FirmwareTypeMax
EndEnumeration
Prototype.i Get_FirmwareType()
If OpenLibrary(0, "Kernel32.dll")
FW.Get_FirmwareType = GetFunction(0, "GetFirmwareType")
Debug FW()
EndIf
https://learn.microsoft.com/en-us/windo ... dfrom=MSDN
https://learn.microsoft.com/en-us/windo ... mware_type