diff --git a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp index 83c543fe0..0f2c05d74 100644 --- a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp +++ b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp @@ -107,11 +107,7 @@ crl::time LastSettingsQueryMs/* = 0*/; } bool init() { - if (!IsWindows8OrGreater()) { - return false; - } - if ((Dlls::SetCurrentProcessExplicitAppUserModelID == nullptr) - || !base::WinRT::Supported()) { + if (!IsWindows8OrGreater() || !base::WinRT::Supported()) { return false; } @@ -128,7 +124,7 @@ bool init() { } auto appUserModelId = AppUserModelId::getId(); - if (!SUCCEEDED(Dlls::SetCurrentProcessExplicitAppUserModelID(appUserModelId))) { + if (!SUCCEEDED(SetCurrentProcessExplicitAppUserModelID(appUserModelId))) { return false; } return true; diff --git a/Telegram/SourceFiles/platform/win/windows_dlls.cpp b/Telegram/SourceFiles/platform/win/windows_dlls.cpp index f728fcce2..7184b2f4b 100644 --- a/Telegram/SourceFiles/platform/win/windows_dlls.cpp +++ b/Telegram/SourceFiles/platform/win/windows_dlls.cpp @@ -34,7 +34,6 @@ SafeIniter::SafeIniter() { LOAD_SYMBOL(LibShell32, OpenAs_RunDLL); LOAD_SYMBOL(LibShell32, SHQueryUserNotificationState); LOAD_SYMBOL(LibShell32, SHChangeNotify); - LOAD_SYMBOL(LibShell32, SetCurrentProcessExplicitAppUserModelID); //if (IsWindows10OrGreater()) { // static const auto kSystemVersion = QOperatingSystemVersion::current(); diff --git a/Telegram/SourceFiles/platform/win/windows_dlls.h b/Telegram/SourceFiles/platform/win/windows_dlls.h index b3695f269..eef6e9bc7 100644 --- a/Telegram/SourceFiles/platform/win/windows_dlls.h +++ b/Telegram/SourceFiles/platform/win/windows_dlls.h @@ -65,8 +65,6 @@ inline void(__stdcall *SHChangeNotify)( UINT uFlags, __in_opt LPCVOID dwItem1, __in_opt LPCVOID dwItem2); -inline HRESULT(__stdcall *SetCurrentProcessExplicitAppUserModelID)( - __in PCWSTR AppID); // PROPSYS.DLL