microsoft / Windows-classic-samples

This repo contains samples that demonstrate the API used in Windows classic desktop applications.
Other
5.1k stars 3.24k forks source link

RecipeThumbnailProvider: explain CRecipeThumbProvider_CreateInstance #262

Open Zyl9393 opened 2 years ago

Zyl9393 commented 2 years ago

The code sample for CRecipeThumbProvider defines a function HRESULT CRecipeThumbProvider_CreateInstance(REFIID riid, void **ppv) without explaining its purpose or otherwise making easy to understand why it exists. I thought that maybe function names ending in _CreateInstance had some special meaning to the Windows shell, but was not able to find any such information.

The code sample should have a comment justifying the existence of the function.