C# Class At.FF.Krems.FullscreenBrowser.PowerManagement

The power management.
Inheritance: IPowerManagement
Afficher le fichier Open project: Grisu-NOE/Infoscreen

Méthodes publiques

Méthode Description
DriveAsleep ( int deviceId ) : bool

Checks is a HDD is currently sleeping (wound down).

Hibernate ( bool force = false ) : void

Hibernate system.

LockWorkstation ( ) : void

Lock the active workstation.

LogOff ( bool force = false ) : void

Log off the active user.

Restart ( bool force = false ) : void

Restart system.

SetPowerReq ( PowerThreadRequirements threadReq ) : void

Set the power requirements for the current application, e.g. Hold display and system from suspend.

Shutdown ( bool force = false ) : void

Shutdown system.

Suspend ( bool force = false ) : void

Suspend system.

Private Methods

Méthode Description
CallShutdown ( ShutdownFlags shutdownFlag, bool force ) : void

The call shutdown.

CheckEntryPoint ( string library, string method ) : bool

The check entry point.

GetDeviceHandle ( int deviceId ) : IntPtr

The get device handle.

PollPowerStatus ( ) : void

The poll power status.

Method Details

DriveAsleep() public méthode

Checks is a HDD is currently sleeping (wound down).
public DriveAsleep ( int deviceId ) : bool
deviceId int Integer value for volume, e.g. 0.
Résultat bool

Hibernate() public méthode

Hibernate system.
public Hibernate ( bool force = false ) : void
force bool Inform system to force operation.
Résultat void

LockWorkstation() public méthode

Lock the active workstation.
public LockWorkstation ( ) : void
Résultat void

LogOff() public méthode

Log off the active user.
public LogOff ( bool force = false ) : void
force bool Inform system to force operation.
Résultat void

Restart() public méthode

Restart system.
public Restart ( bool force = false ) : void
force bool Inform system to force operation.
Résultat void

SetPowerReq() public méthode

Set the power requirements for the current application, e.g. Hold display and system from suspend.
public SetPowerReq ( PowerThreadRequirements threadReq ) : void
threadReq PowerThreadRequirements Flag stating suspend mode, or release.
Résultat void

Shutdown() public méthode

Shutdown system.
public Shutdown ( bool force = false ) : void
force bool Inform system to force operation.
Résultat void

Suspend() public méthode

Suspend system.
public Suspend ( bool force = false ) : void
force bool Inform system to force operation.
Résultat void