Hi
I am looking for a way to close an external app, shelled from my app, when the computer is about to enter standby. Standby is initiated either by power management or button press. Research so far suggests that I need to use subclassing to trap the WM_POWERBROADCAST message, then execute some code to shut down the shelled app before allowing the message to be processed normally by my app.
As I haven't used Subclassing before it looks quite daunting to me so I want to ask if this is the way to go, or can anybody suggest an easier soloution.
Andy
I am looking for a way to close an external app, shelled from my app, when the computer is about to enter standby. Standby is initiated either by power management or button press. Research so far suggests that I need to use subclassing to trap the WM_POWERBROADCAST message, then execute some code to shut down the shelled app before allowing the message to be processed normally by my app.
As I haven't used Subclassing before it looks quite daunting to me so I want to ask if this is the way to go, or can anybody suggest an easier soloution.
Andy