mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-15 16:13:57 +00:00
Add the Windows notification driver
Notifications are supported on Win10 and above.
This commit is contained in:
@@ -379,6 +379,11 @@ BOOL WIN_IsWindows81OrGreater(void)
|
||||
CHECKWINVER(TRUE, IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINBLUE), LOBYTE(_WIN32_WINNT_WINBLUE), 0));
|
||||
}
|
||||
|
||||
BOOL WIN_IsWindows10OrGreater(void)
|
||||
{
|
||||
CHECKWINVER(TRUE, IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN10), LOBYTE(_WIN32_WINNT_WIN10), 0));
|
||||
}
|
||||
|
||||
BOOL WIN_IsWindows11OrGreater(void)
|
||||
{
|
||||
return IsWindowsBuildVersionAtLeast(22000);
|
||||
|
||||
@@ -196,6 +196,9 @@ extern BOOL WIN_IsWindows8OrGreater(void);
|
||||
// Returns true if we're running on Windows 8.1 and newer
|
||||
extern BOOL WIN_IsWindows81OrGreater(void);
|
||||
|
||||
// Returns true if we're running on Windows 10 and newer
|
||||
extern BOOL WIN_IsWindows10OrGreater(void);
|
||||
|
||||
// Returns true if we're running on Windows 11 and newer
|
||||
extern BOOL WIN_IsWindows11OrGreater(void);
|
||||
|
||||
|
||||
1161
src/notification/windows/SDL_windowsnotification.c
Normal file
1161
src/notification/windows/SDL_windowsnotification.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user