CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2015
    Posts
    100

    Post CPU power button event

    I am using Windows 7 32bit OS and want to detect the CPU power button press event in my console application
    developing in C language.

    I configured the power button setting to "Do Nothing" which is in "Choose what the power button does"
    options in Control Panel->Hardware and Sound->Power Options. So now i want to detect this power button
    press event and do some processing in my application then i will initate shut down from application itself.

    Kindly provide the windows API details which will detect the power button press event.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: CPU power button event

    This question was already answered in your other thread: http://forums.codeguru.com/showthrea...71#post2173771
    Why do you post it again?
    Victor Nijegorodov

  3. #3
    Join Date
    Jan 2015
    Posts
    100

    Re: CPU power button event

    Sorry by mistake i done

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured