Secure Boot on W8 & 8.1

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')
      Writeln('UEFI Boot Mode');
    on E: Exception do
      Writeln(E.ClassName, ': ', E.Message);

Open in new window

But i need disable this option without change directly on BIOS, how i can do it with delphi?
Douglas RuizAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Geert GOracle dbaCommented:
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
Sinisa VukSoftware architectCommented:
There is no option to do it with Delphi. Read this article...
Then again.... firmwares are not the same ... (award, gigabyte, asrock...) ... and if you can  - then some virus can do too....

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Douglas RuizAuthor Commented:
I need change this option after windows startup, on windows running with delphi or another language.
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Douglas RuizAuthor Commented:
No one?
Geert GOracle dbaCommented:
you need to do it manually in the BIOS during startup

Delphi is not an option

sometimes an answer is "you can't do that with Delphi"
you'll have to live with that and accept that answer

asking anyone else will not give a different answer

fwiw, i don't think you will be able to get certificates for your Delphi programs to run in secure boot
Douglas RuizAuthor Commented:
Why not? i just need pay and certificate my dlls.
can i change the bios settings with other language?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.