Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
CallShutdown ( ShutdownFlags shutdownFlag, bool force ) : void |
The call shutdown.
|
|
CheckEntryPoint ( string library, string method ) : bool |
The check entry point.
|
|
GetDeviceHandle ( int deviceId ) : |
The get device handle.
|
|
PollPowerStatus ( ) : void |
The poll power status.
|
public DriveAsleep ( int deviceId ) : bool | ||
deviceId | int | Integer value for volume, e.g. 0. |
Результат | bool |
public Hibernate ( bool force = false ) : void | ||
force | bool | Inform system to force operation. |
Результат | void |
public LogOff ( bool force = false ) : void | ||
force | bool | Inform system to force operation. |
Результат | void |
public Restart ( bool force = false ) : void | ||
force | bool | Inform system to force operation. |
Результат | void |
public SetPowerReq ( PowerThreadRequirements threadReq ) : void | ||
threadReq | PowerThreadRequirements | Flag stating suspend mode, or release. |
Результат | void |
public Shutdown ( bool force = false ) : void | ||
force | bool | Inform system to force operation. |
Результат | void |
public Suspend ( bool force = false ) : void | ||
force | bool | Inform system to force operation. |
Результат | void |