C# Class Appccelerate.Windows.WindowsHelper

Provides functionality to interact with Windows (OS).
Show file Open project: appccelerate/appccelerate

Public Methods

Method Description
ExitSystem ( EWX_ENUM ewx_value ) : void

Shuts down the machine according the given value.

Private Methods

Method Description
AdjustTokenPrivileges ( int tokenHandler, int disableAllPrivileges, [ newState, int bufferLength, int previousState, int returnLength ) : int
ExitwindowsEx ( int flg, int rea ) : bool
GetCurrentProcess ( ) : int
LookupPrivilegeValue ( string systemName, string name, LUID &pluid ) : bool
OpenProcessToken ( int processHandle, uint desiredAccess, int &tokenHandle ) : bool

Method Details

ExitSystem() public static method

Shuts down the machine according the given value.
public static ExitSystem ( EWX_ENUM ewx_value ) : void
ewx_value EWX_ENUM Set of flags defined in EWX_ENUM
return void