C# Class SecureDelete.Schedule.PowerManager

显示文件 Open project: gratianlup/SecureDelete Class Usage Examples

Public Methods

Method Description
GetPowerStatus ( ) : bool

Method should only be used on XP systems.

IsUnderVista ( ) : bool
PowerManager ( ) : System
Start ( ) : bool
Stop ( ) : void

Private Methods

Method Description
GetSystemPowerStatus ( SystemPowerStatus lpSystemPowerStatus ) : bool
NotifyStatusChagned ( ) : void
StopImpl ( ) : void
WinFormStop ( ) : void
WinFormsStart ( ) : void

Method Details

GetPowerStatus() public method

Method should only be used on XP systems.
public GetPowerStatus ( ) : bool
return bool

IsUnderVista() public static method

public static IsUnderVista ( ) : bool
return bool

PowerManager() public method

public PowerManager ( ) : System
return System

Start() public method

public Start ( ) : bool
return bool

Stop() public method

public Stop ( ) : void
return void