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

The power management.
Inheritance: IPowerManagement
Mostrar archivo Open project: Grisu-NOE/Infoscreen

Public Methods

Method 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

Method 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 method

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

Hibernate() public method

Hibernate system.
public Hibernate ( bool force = false ) : void
force bool Inform system to force operation.
return void

LockWorkstation() public method

Lock the active workstation.
public LockWorkstation ( ) : void
return void

LogOff() public method

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

Restart() public method

Restart system.
public Restart ( bool force = false ) : void
force bool Inform system to force operation.
return void

SetPowerReq() public method

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.
return void

Shutdown() public method

Shutdown system.
public Shutdown ( bool force = false ) : void
force bool Inform system to force operation.
return void

Suspend() public method

Suspend system.
public Suspend ( bool force = false ) : void
force bool Inform system to force operation.
return void