Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  WinTokenUtils.h

  Sprache: C
 

/* 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 {

/**
 * Windows UAC can be disabled via the registry. This checks if the user has
 * Administrator privileges and UAC has been disabled.
 *
 * @return `Ok(true)` when the current process has Administrator privileges
 *         *and* UAC has been disabled, otherwise `Ok(false)` or
 *         `Err(WindowsError)`.
 */

LauncherResult<bool> IsAdminWithoutUac();

/**
 * Checks if the current process has Administrator privileges.
 *
 * @return `Ok(true)` when the current process has Administrator privileges,
 *         otherwise `Ok(false)` or `Err(WindowsError)`.
 *
 */

LauncherResult<bool> UserHasAdminPrivileges();

/**
 * Checks if the current process user is LocalSystem.
 *
 * LocalSystem (or just SYSTEM in Task Manager) is a high privileged account
 * similar to Administrator. Unlike Administrator which runs under a User
 * context, LocalSystem runs under a System context and has some privileges
 * beyond that of Administrator. We use LocalSystem for privileges necessary for
 * our updater.
 *
 * Note that LocalSystem is not equivalent to the lower privileged LocalSerivce
 * account.
 *
 * @return `Ok(true)` when the current process user is LocalSystem, otherwise
 *         `Ok(false)` or `Err(WindowsError)`.
 */

LauncherResult<bool> UserIsLocalSystem();

}  // namespace mozilla

#endif  // mozilla_WinTokenUtils_h

Messung V0.5 in Prozent
C=94 H=99 G=96

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002