LibreOffice Module onlineupdate (master) 1
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
UACHelper Class Reference

#include <uachelper.h>

Static Public Member Functions

static HANDLE OpenUserToken (DWORD sessionID)
 
static HANDLE OpenLinkedToken (HANDLE token)
 
static BOOL DisablePrivileges (HANDLE token)
 
static bool CanUserElevate ()
 

Static Private Member Functions

static BOOL SetPrivilege (HANDLE token, LPCTSTR privs, BOOL enable)
 
static BOOL DisableUnneededPrivileges (HANDLE token, LPCTSTR *unneededPrivs, size_t count)
 

Static Private Attributes

static LPCTSTR PrivsToDisable []
 

Detailed Description

Definition at line 8 of file uachelper.h.

Member Function Documentation

◆ CanUserElevate()

static bool UACHelper::CanUserElevate ( )
static

◆ DisablePrivileges()

static BOOL UACHelper::DisablePrivileges ( HANDLE  token)
static

Referenced by NS_main(), and SvcMain().

◆ DisableUnneededPrivileges()

static BOOL UACHelper::DisableUnneededPrivileges ( HANDLE  token,
LPCTSTR *  unneededPrivs,
size_t  count 
)
staticprivate

◆ OpenLinkedToken()

static HANDLE UACHelper::OpenLinkedToken ( HANDLE  token)
static

◆ OpenUserToken()

static HANDLE UACHelper::OpenUserToken ( DWORD  sessionID)
static

◆ SetPrivilege()

static BOOL UACHelper::SetPrivilege ( HANDLE  token,
LPCTSTR  privs,
BOOL  enable 
)
staticprivate

Member Data Documentation

◆ PrivsToDisable

LPCTSTR UACHelper::PrivsToDisable[]
staticprivate

Definition at line 20 of file uachelper.h.


The documentation for this class was generated from the following file: