I need some code for finding the handle of the small screen on the display properties window that shows the screen saver preview.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

bogieman_Connect With a Mentor Commented:
If you want a screen saver application to find it, windows passes the handle to it in the /p parameter when you select the screen saver from the list - e.g /p 123 would be the handle 123.

I'm sure you know how to get the parameter and use Getdc(...) to find the handle so that's it!

All Courses

From novice to tech pro — start learning today.