C# Class SebWindowsClient.ServiceUtils.SebWindowsServiceHandler

Static SebWindowsServiceHandler with singleton pattern
Mostra file Open project: SafeExamBrowser/seb-win Class Usage Examples

Public Methods

Method Description
DisableWindowsUpdate ( ) : bool
Reconnect ( ) : void

Reconnect to the Windows Service over .NET Pipe

ResetRegistry ( ) : bool

Resets registry values to the values before SEB was running Throws Exception

SetRegistryAccordingToConfiguration ( ) : bool

Calls the windows service to set registry values to the insideSeb settings Throws Exception

SetRegistryAccordingToConfiguration ( object>.Dictionary valuesToSet ) : bool

Private Methods

Method Description
GetCurrentUserSID ( ) : string
GetCurrentUsername ( ) : string
Initialize ( ) : void

Method Details

DisableWindowsUpdate() public static method

public static DisableWindowsUpdate ( ) : bool
return bool

Reconnect() public static method

Reconnect to the Windows Service over .NET Pipe
public static Reconnect ( ) : void
return void

ResetRegistry() public static method

Resets registry values to the values before SEB was running Throws Exception
public static ResetRegistry ( ) : bool
return bool

SetRegistryAccordingToConfiguration() public static method

Calls the windows service to set registry values to the insideSeb settings Throws Exception
public static SetRegistryAccordingToConfiguration ( ) : bool
return bool

SetRegistryAccordingToConfiguration() public static method

public static SetRegistryAccordingToConfiguration ( object>.Dictionary valuesToSet ) : bool
valuesToSet object>.Dictionary
return bool