-
Notifications
You must be signed in to change notification settings - Fork 445
Expand file tree
/
Copy pathShellLocalization.h
More file actions
27 lines (18 loc) · 949 Bytes
/
ShellLocalization.h
File metadata and controls
27 lines (18 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.
#pragma once
#include "pch.h"
// In this file we define methods that write/return Shell assets, like DisplayName and icon URI.
namespace Microsoft::Windows::AppNotifications::ShellLocalization
{
const PCWSTR c_localWindowsAppSDKFolder{ LR"(Microsoft\WindowsAppSDK\)" };
const PCWSTR c_pngExtension{ LR"(.png)" };
struct AppNotificationAssets {
std::wstring displayName;
std::wstring iconFilePath;
};
HRESULT RetrieveAssetsFromProcess(_Out_ Microsoft::Windows::AppNotifications::ShellLocalization::AppNotificationAssets& assets) noexcept;
HRESULT RetrieveAssetsFromShortcut(_Out_ Microsoft::Windows::AppNotifications::ShellLocalization::AppNotificationAssets& assets) noexcept;
HRESULT DeleteIconFromCache() noexcept;
bool IsIconFileExtensionSupported(std::filesystem::path const& iconFilePath);
}