mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
18aab300b5
`WindowsErrorResult` is a class to hold either a value or a Windows error code based on the `Result` template. We also have `LauncherResult` for the same purpose, which was introduced as a part of the launcher process feature afterward. The difference is `LauncherResult` holds a filename and line number along with an error code. This patch integrates LauncherResult.h into WinHeaderOnlyUtils.h so that we can use `LauncherResult` more broadly. Differential Revision: https://phabricator.services.mozilla.com/D44512 --HG-- extra : moz-landing-system : lando
19 lines
558 B
C++
19 lines
558 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_WinTokenUtils_h
|
|
#define mozilla_WinTokenUtils_h
|
|
|
|
#include "mozilla/WinHeaderOnlyUtils.h"
|
|
|
|
namespace mozilla {
|
|
|
|
LauncherResult<bool> IsAdminWithoutUac();
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_WinTokenUtils_h
|