mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Closed beta 10020001: application icon changed.
This commit is contained in:
@@ -49,6 +49,7 @@ f_SHCreateItemFromParsingName SHCreateItemFromParsingName;
|
||||
f_WTSRegisterSessionNotification WTSRegisterSessionNotification;
|
||||
f_WTSUnRegisterSessionNotification WTSUnRegisterSessionNotification;
|
||||
f_SHQueryUserNotificationState SHQueryUserNotificationState;
|
||||
f_SHChangeNotify SHChangeNotify;
|
||||
f_SetCurrentProcessExplicitAppUserModelID SetCurrentProcessExplicitAppUserModelID;
|
||||
f_RoGetActivationFactory RoGetActivationFactory;
|
||||
f_WindowsCreateStringReference WindowsCreateStringReference;
|
||||
@@ -70,8 +71,13 @@ void start() {
|
||||
load(LibShell32, "SHOpenWithDialog", SHOpenWithDialog);
|
||||
load(LibShell32, "OpenAs_RunDLLW", OpenAs_RunDLL);
|
||||
load(LibShell32, "SHQueryUserNotificationState", SHQueryUserNotificationState);
|
||||
load(LibShell32, "SHChangeNotify", SHChangeNotify);
|
||||
load(LibShell32, "SetCurrentProcessExplicitAppUserModelID", SetCurrentProcessExplicitAppUserModelID);
|
||||
|
||||
if (cBetaVersion() == 10020001 && SHChangeNotify) { // Temp - app icon was changed
|
||||
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nullptr, nullptr);
|
||||
}
|
||||
|
||||
LibUxTheme = LoadLibrary(L"UXTHEME.DLL");
|
||||
load(LibUxTheme, "SetWindowTheme", SetWindowTheme);
|
||||
|
||||
|
@@ -63,6 +63,9 @@ extern f_OpenAs_RunDLL OpenAs_RunDLL;
|
||||
typedef HRESULT (FAR STDAPICALLTYPE *f_SHQueryUserNotificationState)(QUERY_USER_NOTIFICATION_STATE *pquns);
|
||||
extern f_SHQueryUserNotificationState SHQueryUserNotificationState;
|
||||
|
||||
typedef void (FAR STDAPICALLTYPE *f_SHChangeNotify)(LONG wEventId, UINT uFlags, __in_opt LPCVOID dwItem1, __in_opt LPCVOID dwItem2);
|
||||
extern f_SHChangeNotify SHChangeNotify;
|
||||
|
||||
typedef HRESULT (FAR STDAPICALLTYPE *f_SetCurrentProcessExplicitAppUserModelID)(__in PCWSTR AppID);
|
||||
extern f_SetCurrentProcessExplicitAppUserModelID SetCurrentProcessExplicitAppUserModelID;
|
||||
|
||||
|
Reference in New Issue
Block a user