Jump to content

Detecting Power Switch Press in Custom Shell


Recommended Posts

Posted

Hi Forum,

Not sure if is the correct place to ask. However here goes.

I have written a custom shell to use with WinPE 3.0 to deploy OS to multiple systems using WIM.

The WinPE image I create is just default with WMI.cab included. My shell is copied into \windows\system32\myshell.exe and the winpeshi.ini.

However, I cannot detect when the power button is pressed. I want the use after completion of the imaging to press the power button to shutdown the system.

What do I need to do to be able to detect the power button pressed?

Do I need to load drivers for the ACPI power buttons on my PC? Or are they just treated is it treated as just a standard power button.

Thanks

Stuart


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...