Hi i am new to c++, i need a code for an application with following specifications.
- it should use RegisterPowerSettingNotification function and when WM_PowerBroadcast event is recieved then it finds if power source is ac or not.
- if source is AC then it should execute a program.
dev c++ compatible code is preferable.