C# Class Reboot, code

Inheritance: MonoBehaviour
Mostra file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
CTL_CODE ( uint DeviceType, uint Function, uint Method, uint Access ) : uint
ColdReset ( ) : uint
HardReset ( ) : void
SoftReset ( ) : uint

Causes the CE device to soft/warm reset

rebootDevice ( ) : void

Private Methods

Method Description
ExitWindowsEx ( uint dwFlags, uint dwReserved ) : bool
KernelIoControl ( int dwIoControlCode, IntPtr, lpInBuf, int nInBufSize, IntPtr, lpOutBuf, int nOutBufSize, int &lpBytesReturned ) : int
KernelIoControl ( uint dwIoControlCode, IntPtr, lpInBuf, uint nInBufSize, IntPtr, lpOutBuf, uint nOutBufSize, uint &lpBytesReturned ) : uint
SetCleanRebootFlag ( ) : void
SetSystemPowerState ( String psState, Int32, StateFlags, Int32, Options ) : uint

Method Details

CTL_CODE() public static method

public static CTL_CODE ( uint DeviceType, uint Function, uint Method, uint Access ) : uint
DeviceType uint
Function uint
Method uint
Access uint
return uint

ColdReset() public static method

public static ColdReset ( ) : uint
return uint

HardReset() public static method

public static HardReset ( ) : void
return void

SoftReset() public static method

Causes the CE device to soft/warm reset
public static SoftReset ( ) : uint
return uint

rebootDevice() public method

public rebootDevice ( ) : void
return void