Link to home
Start Free TrialLog in
Avatar of Douglas Ruiz
Douglas Ruiz

asked on

Secure Boot on W8 & 8.1

Hi,
I can determine if the computer are in secure boot (UEFI) or not with this function:

GetFirmwareEnvironmentVariableA('','{00000000-0000-0000-0000-000000000000}', nil,0);
    if (GetLastError = ERROR_INVALID_FUNCTION) then
      Writeln('Legacy BIOS')
    else
      Writeln('UEFI Boot Mode');
  except
    on E: Exception do
      Writeln(E.ClassName, ': ', E.Message);
  end;

Open in new window


But i need disable this option without change directly on BIOS, how i can do it with delphi?
Avatar of Geert G
Geert G
Flag of Belgium image

i hope you realize warning bells sound when you ask a question like that ?

the pc requires a reboot for the changes to take effect
so it's really not an idea to have you program switch it off  
if the company running your software has problems with secure boot then the secure boot will simply have to be turned off

or you'll have to certify your software to work with secure boot

if you really want to pursue this ... it's probably a registry setting
ASKER CERTIFIED SOLUTION
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Douglas Ruiz
Douglas Ruiz

ASKER

I need change this option after windows startup, on windows running with delphi or another language.
No one?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Why not? i just need pay and certificate my dlls.
can i change the bios settings with other language?