Pelles C forum

C language => User contributions => Topic started by: ElectroDoc on April 12, 2016, 09:04:12 PM

Title: Windows 10 "Spotlight" images explorer
Post by: ElectroDoc on April 12, 2016, 09:04:12 PM
Do you use Windows 10?
Do you notice the lock screen images that change once in a while?
Do you wonder where Windows stores these images? or wanted a program to extract them for you?

I wrote a program in Pelles C that can extract these images (which are called Windows Spotlight images) and saves them to a folder of your choice.

* Note that it runs on Windows 10 only *

The code demonstrates some nice features like:
- Using the GDI+ library (thanks to TimoVJL for the GDI+ flat API header)
- Using multiple threads of execution
- Using MD5 to compare saved/new images
- Using file images as an ImageList for a ListView controls
- How to define Windows 10 in the application's manifest in order to properly check the version number.

I wrote the program with a very limited time, so it may contain bugs. Any comments are appreciated!
Title: Re: Windows 10 "Spotlight" images explorer
Post by: frankie on April 13, 2016, 09:05:27 AM
Nice Job!  :)
Title: Re: Windows 10 "Spotlight" images explorer
Post by: Grincheux on April 27, 2016, 06:03:10 PM
Tested by adding 19000 images to the right listbox without problem.
I think that images are too small.
It seems the WM_SETREDRAW (https://msdn.microsoft.com/fr-fr/library/windows/desktop/dd145219(v=vs.85).aspx) message is not treated when adding images to the listbox.
Good work.

(http://www.phrio.biz/pelles/spotlight.jpg)