BOOLEAN IsDfciEnabledForDisplay()

in OemPkg/FrontPage/FrontPage.c [782:793]


BOOLEAN IsDfciEnabledForDisplay (VOID) {
    EFI_STATUS  Status;
    VOID       *dummy;  // There is no protocol interface - just the existence that is is published
    BOOLEAN     DfciEnabled = FALSE;

    if (FeaturePcdGet(PcdDfciEnabled)) {
        Status = gBS->LocateProtocol (&gDfciMenuFormsetGuid, NULL, (VOID **) &dummy);
        DfciEnabled = !EFI_ERROR(Status);
    }

    return DfciEnabled;
}