Skip to content

Commit

Permalink
+ added PerceivedType parameter so that Windows applies same effects …
Browse files Browse the repository at this point in the history
…to QOI previews, as it does to all images types

* updated QOI thumbnails screenshot
  • Loading branch information
iOrange committed Feb 2, 2022
1 parent 7bd50c1 commit d1625c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ STDAPI DllRegisterServer() {
{HKEY_CURRENT_USER, L"Software\\Classes\\CLSID\\" SZ_CLSID_QOITHUMBHANDLER, nullptr, SZ_QOITHUMBHANDLER},
{HKEY_CURRENT_USER, L"Software\\Classes\\CLSID\\" SZ_CLSID_QOITHUMBHANDLER L"\\InProcServer32", nullptr, szModuleName},
{HKEY_CURRENT_USER, L"Software\\Classes\\CLSID\\" SZ_CLSID_QOITHUMBHANDLER L"\\InProcServer32", L"ThreadingModel", L"Apartment"},
{HKEY_CURRENT_USER, L"Software\\Classes\\.qoi", L"PerceivedType", L"image"},
{HKEY_CURRENT_USER, L"Software\\Classes\\.qoi\\ShellEx\\{e357fccd-a995-4576-b01f-234630154e96}", nullptr, SZ_CLSID_QOITHUMBHANDLER},
};

Expand All @@ -204,7 +205,7 @@ STDAPI DllUnregisterServer() {

const PCWSTR regKeys[] = {
L"Software\\Classes\\CLSID\\" SZ_CLSID_QOITHUMBHANDLER,
L"Software\\Classes\\.qoi\\ShellEx\\{e357fccd-a995-4576-b01f-234630154e96}"
L"Software\\Classes\\.qoi"
};

// Delete the registry entries
Expand Down
10 changes: 5 additions & 5 deletions Dll.rc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#endif

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,0,1,0
PRODUCTVERSION 0,0,1,0
FILEVERSION 0,0,2,0
PRODUCTVERSION 0,0,2,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS VER_DEBUG
FILEOS VOS__WINDOWS32
Expand All @@ -21,14 +21,14 @@ BEGIN
BEGIN
VALUE "CompanyName", "iOrange"
VALUE "FileDescription", "QOI Thumbnail Provider"
VALUE "FileVersion", "0.0.1.0"
VALUE "FileVersion", "0.0.2.0"
VALUE "InternalName", "QOIThumbnailProvider.dll"
VALUE "LegalCopyright", "2021, iOrange"
VALUE "LegalCopyright", "2022, iOrange"
VALUE "LegalTrademarks1", ""
VALUE "LegalTrademarks2", ""
VALUE "OriginalFilename", "QOIThumbnailProvider.dll"
VALUE "ProductName", "QOIThumbnailProvider"
VALUE "ProductVersion", "0, 0, 1, 0"
VALUE "ProductVersion", "0, 0, 2, 0"
END
END
BLOCK "VarFileInfo"
Expand Down
Binary file modified _images/thumbnails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1625c8

Please sign in to comment.