Browse Source

Toast notifications display correct timestamp

pull/886/head 22000.376.40.21_f404f8c
Valentin Radu 4 years ago
parent
commit
f404f8c036
  1. 6
      ExplorerPatcher/symbols.c
  2. 14
      ExplorerPatcher/updates.c
  3. 2
      ExplorerPatcher/utility.c

6
ExplorerPatcher/symbols.c

@ -20,7 +20,7 @@ const char* startdocked_SN[STARTDOCKED_SB_CNT] = { @@ -20,7 +20,7 @@ const char* startdocked_SN[STARTDOCKED_SB_CNT] = {
};
const wchar_t DownloadSymbolsXML[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"https://github.com/valinet/ExplorerPatcher\" duration=\"short\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"
@ -33,7 +33,7 @@ L" <audio src=\"ms-winsoundevent:Notification.Default\" loop=\"false\" silent=\" @@ -33,7 +33,7 @@ L" <audio src=\"ms-winsoundevent:Notification.Default\" loop=\"false\" silent=\"
L"</toast>\r\n";
const wchar_t DownloadOKXML[] =
L"<toast displayTimestamp=\"2021-08-29T01:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"https://github.com/valinet/ExplorerPatcher\" duration=\"long\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"
@ -46,7 +46,7 @@ L" <audio src=\"ms-winsoundevent:Notification.Default\" loop=\"false\" silent=\" @@ -46,7 +46,7 @@ L" <audio src=\"ms-winsoundevent:Notification.Default\" loop=\"false\" silent=\"
L"</toast>\r\n";
const wchar_t InstallOK[] =
L"<toast displayTimestamp=\"2021-08-29T01:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"https://github.com/valinet/ExplorerPatcher\" duration=\"long\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"

14
ExplorerPatcher/updates.c

@ -655,7 +655,7 @@ BOOL ShowUpdateSuccessNotification( @@ -655,7 +655,7 @@ BOOL ShowUpdateSuccessNotification(
__x_ABI_CWindows_CData_CXml_CDom_CIXmlDocument* inputXml = NULL;
const wchar_t text[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"" _T(UPDATES_RELEASE_INFO_URL) L"\" duration=\"short\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"
@ -746,7 +746,7 @@ BOOL InstallUpdatesIfAvailable( @@ -746,7 +746,7 @@ BOOL InstallUpdatesIfAvailable(
if (dwOperation == UPDATES_OP_INSTALL)
{
const wchar_t text[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"" _T(UPDATES_RELEASE_INFO_URL) L"\" duration=\"long\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"
@ -768,7 +768,7 @@ BOOL InstallUpdatesIfAvailable( @@ -768,7 +768,7 @@ BOOL InstallUpdatesIfAvailable(
else if (dwOperation == UPDATES_OP_CHECK)
{
const wchar_t text[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"" _T(UPDATES_RELEASE_INFO_URL) L"\" duration=\"long\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"
@ -834,7 +834,7 @@ BOOL InstallUpdatesIfAvailable( @@ -834,7 +834,7 @@ BOOL InstallUpdatesIfAvailable(
if (dwOperation == UPDATES_OP_INSTALL)
{
const wchar_t text[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"" _T(UPDATES_RELEASE_INFO_URL) L"\" duration=\"short\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"
@ -881,7 +881,7 @@ BOOL InstallUpdatesIfAvailable( @@ -881,7 +881,7 @@ BOOL InstallUpdatesIfAvailable(
else if ((dwOperation == UPDATES_OP_DEFAULT && dwUpdatePolicy == UPDATE_POLICY_NOTIFY) || (dwOperation == UPDATES_OP_CHECK))
{
const wchar_t text[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"%s\" duration=\"long\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"
@ -938,7 +938,7 @@ BOOL InstallUpdatesIfAvailable( @@ -938,7 +938,7 @@ BOOL InstallUpdatesIfAvailable(
if (dwOperation == UPDATES_OP_CHECK || dwOperation == UPDATES_OP_INSTALL)
{
const wchar_t text[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"" _T(UPDATES_RELEASE_INFO_URL) L"\" duration=\"short\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"
@ -950,7 +950,7 @@ BOOL InstallUpdatesIfAvailable( @@ -950,7 +950,7 @@ BOOL InstallUpdatesIfAvailable(
L" <audio src=\"ms-winsoundevent:Notification.Default\" loop=\"false\" silent=\"false\"/>\r\n"
L"</toast>\r\n";
const wchar_t text2[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"" _T(UPDATES_RELEASE_INFO_URL) L"\" duration=\"short\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"

2
ExplorerPatcher/utility.c

@ -175,7 +175,7 @@ __declspec(dllexport) CALLBACK ZZTestBalloon(HWND hWnd, HINSTANCE hInstance, LPS @@ -175,7 +175,7 @@ __declspec(dllexport) CALLBACK ZZTestBalloon(HWND hWnd, HINSTANCE hInstance, LPS
}
const wchar_t TestToastXML[] =
L"<toast displayTimestamp=\"2021-08-29T00:00:00.000Z\" scenario=\"reminder\" "
L"<toast scenario=\"reminder\" "
L"activationType=\"protocol\" launch=\"https://github.com/valinet/ExplorerPatcher\" duration=\"%s\">\r\n"
L" <visual>\r\n"
L" <binding template=\"ToastGeneric\">\r\n"

Loading…
Cancel
Save