Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subclass to read WM_POWERBROADCAST ?

Status
Not open for further replies.

bbuk

Technical User
Apr 27, 2002
44
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top