Bug 1944627 - update sidebar button checked state for non-revamped sidebar cases...
[gecko.git] / browser / app / winlauncher / LaunchUnelevated.h
blob8c6679edf3a8f4dba7a96edbbd3823256a16f014
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_LaunchUnelevated_h
8 #define mozilla_LaunchUnelevated_h
10 #include "LauncherProcessWin.h"
11 #include "mozilla/WinHeaderOnlyUtils.h"
12 #include "mozilla/Maybe.h"
13 #include "nsWindowsHelpers.h"
15 namespace mozilla {
17 enum class ElevationState {
18 eNormalUser = 0,
19 eElevated = (1 << 0),
20 eHighIntegrityNoUAC = (1 << 1),
21 eHighIntegrityByAppCompat = (1 << 2),
24 LauncherResult<ElevationState> GetElevationState(
25 const wchar_t* aExecutablePath, LauncherFlags aFlags,
26 nsAutoHandle& aOutMediumIlToken);
28 LauncherVoidResult LaunchUnelevated(int aArgc, wchar_t* aArgv[]);
30 } // namespace mozilla
32 #endif // mozilla_LaunchUnelevated_h