Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 152707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:40:18+00:00 2026-05-11T09:40:18+00:00

On most newer computers you can shutdown the hard way by pressing the power

  • 0

On most newer computers you can shutdown the hard way by pressing the power button for a couple of seconds. But I want to prevent this completely.

You’re able to prevent some soft events like the sleep, suspend, hibernate and ‘Press power button’ events in Windows control panel; you can also use some Win32 and WDI programming to catch and handle/deny those events but it doesn’t seem to stop the mechanical power off when you hold the button for a longer time.

I guess the power button is hard-wired to the power supply and never waits for the OS when you hold it down for some seconds? Or is there some way to prevent even this case by code?

I’m a .NET developer.

Whooaaa…! Lots of you really argued for not doing this – ‘You don’t own my computer or my OS’, – ‘are you developing SkyNet’ etc 🙂 This application is a highly customized and closed solution for some customers. It’s a kiosk application on customized hardware running on Windows XP Embedded and use a touch screen. It’s not public.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:40:18+00:00Added an answer on May 11, 2026 at 9:40 am

    See page 86 of the ACPI spec in relation to the 4-second rule (https://uefi.org/sites/default/files/resources/ACPI_6_3_final_Jan30.pdf)

    The text is as follows:

    4.8.2.2.1.3 Power Button Override

    The ACPI specification also allows that if the user presses the power button for more than four seconds while the system is in the working state, a hardware event is generated and the system will transition to the soft-off state. This hardware event is called a power button override. In reaction to the power button override event, the hardware clears the power button status bit (PWRBTN_STS).

    Long and the short of it is that the logic is in hardware. There is no documented method for changing this timing in the ACPI specification.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never come across this issue but most recently I noticed that a
Most things are dynamic in SSRS i.e you can create a custom expression for
Most objects in SAP ERP can be double clicked to get more information in
Most of us write conditionals like: if (resultIndex == 0) ...but occaisionally I come
What is the most efficient way to do automatic form submission? I'm doing this
Okay I am newer to python and have been researching this problem but I
I'm using KnockoutJS and MVVM in a page and most if it works, but
I just discovered (the hard way) that if you deploy your application to a
Page 215 of the CF9 Web Application Construction Kit volume 1 says Most newer
I want to get the most performance of my mobile application on Android. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.