Hi i am new to c++, i need a code for an application with following specifications.

  1. it should use RegisterPowerSettingNotification function and when WM_PowerBroadcast event is recieved then it finds if power source is ac or not.
  2. if source is AC then it should execute a program.

dev c++ compatible code is preferable.

Modify this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.