Notifications do not work out-of-the-box on Windows 8+
Running `testnotification.exe`, I get `Notification dispatch failed: Notifications require Windows 10 or higher`.
My systems is running 10 however:
```
Microsoft Windows 10 Home
Version 10.0.19045 Build 19045
```
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-verifyversioninfow says:
> **Windows 10:** VerifyVersionInfo returns false when called by applications that do not have a compatibility manifest for Windows 8.1 or Windows 10 if the lpVersionInfo parameter is set so that it specifies Windows 8.1 or Windows 10, even when the current operating system version is Windows 8.1 or Windows 10. Specifically, VerifyVersionInfo has the following behavior:
>
> - If the application has no manifest, VerifyVersionInfo behaves as if the operation system version is Windows 8 (6.2).
> - if the application has a manifest that contains the GUID that corresponds to Windows 8.1, VerifyVersionInfo behaves as if the operation system version is Windows 8.1 (6.3).
> - If the application has a manifest that contains the GUID that corresponds to Windows 10, VerifyVersionInfo behaves as if the operation system version is Windows 10 (10.0).
Adding [a manifest](https://learn.microsoft.com/en-us/windows/win32/sysinfo/targeting-your-application-at-windows-8-1) to the test binaries make the notifications appear. Adding a manifest to `SDL3.dll` does *not* work.
@Kontrabant
0 条评论