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"
17 enum class ElevationState
{
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