C# Class PrivilegeClass.Privilege

Afficher le fichier Open project: ExtremeGTX/Androidx86-Installer-for-Windows Class Usage Examples

Méthodes publiques

Méthode Description
Disable ( ) : void
Enable ( ) : void
Privilege ( string privilegeName ) : System
Revert ( ) : void
RunWithPrivilege ( string privilege, bool enabled, PrivilegedCallback callback, object state ) : void

Private Methods

Méthode Description
LuidFromPrivilege ( string privilege ) : NativeMethods.LUID
Reset ( ) : void
ToggleState ( bool enable ) : void

Method Details

Disable() public méthode

public Disable ( ) : void
Résultat void

Enable() public méthode

public Enable ( ) : void
Résultat void

Privilege() public méthode

public Privilege ( string privilegeName ) : System
privilegeName string
Résultat System

Revert() public méthode

public Revert ( ) : void
Résultat void

RunWithPrivilege() public static méthode

public static RunWithPrivilege ( string privilege, bool enabled, PrivilegedCallback callback, object state ) : void
privilege string
enabled bool
callback PrivilegedCallback
state object
Résultat void