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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting screensaver

Status
Not open for further replies.

Pinpoint

Programmer
Dec 23, 2001
49
GB
Hi,

Can my Visual C++ app detect that the screensaver has started running ? I'm trying the CMainFrame::OnActivateApp function, but it picks up any new app. Are there specific parameters to get it to pick up only the screensaver?

Thanks,

Pinpoint
 
Detecting a running SS is different for various platforms of windows where versions does your app run on?

William
Software Engineer
ICQ No. 56047340
 
Hi William,

Thanks, I'm currently on Win XP, but I need my app to run on 95, 98, ME if possible. Probably not Win 2000, yet. But if I can cater for it I should...

Pinpoint
 
Ok,

Here is the code that will detect SS on 98 and NT. I'll paste the CPP file in another message and then the header.

I hope it's of use to you.



William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top