1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 * This file exists to keep the Windows 11 Taskbar Pinning API
8 * related code as self-contained as possible.
11 #ifndef SHELL_WINDOWS11TASKBARPINNING_H__
12 #define SHELL_WINDOWS11TASKBARPINNING_H__
16 #include <windows.h> // for HRESULT
18 enum class Win11PinToTaskBarResultStatus
{
27 struct Win11PinToTaskBarResult
{
29 Win11PinToTaskBarResultStatus result
;
32 Win11PinToTaskBarResult
PinCurrentAppToTaskbarWin11(
33 bool aCheckOnly
, const nsAString
& aAppUserModelId
);
35 Win11PinToTaskBarResult
IsCurrentAppPinnedToTaskbarWin11(bool aCheckOnly
);
37 #endif // SHELL_WINDOWS11TASKBARPINNING_H__