C# Class SebWindowsClient.SebWindowsClientMain

Afficher le fichier Open project: SafeExamBrowser/seb-win Class Usage Examples

Méthodes publiques

Свойство Type Description
sessionCreateNewDesktop bool
singleInstanceController SingleInstanceController
splash SEBSplashScreen

Méthodes publiques

Méthode Description
CheckIfInsideVirtualMachine ( ) : void

Check if running in VM and if SEB Windows Service is running or not.

CheckServicePolicy ( bool isServiceAvailable ) : void
CloseSplash ( ) : void
InitSEBDesktop ( ) : bool

Create and initialize new desktop.

InitSebSettings ( ) : bool

Create and initialize SEB client settings and check system compatibility. This method needs to be executed only once when SEB first starts (not when reconfiguring).

LoadingSebFile ( bool loading ) : void

Set loading .seb file flag.

ResetSEBDesktop ( ) : void

Reset desktop to the default one which was active before starting SEB.

SEBToForeground ( ) : void

Move SEB to the foreground.

SetVisibility ( bool show ) : void

Hide or show the Windows taskbar and startmenu.

StartSplash ( ) : void
isLoadingSebFile ( ) : bool

Get loading .seb file flag.

Private Methods

Méthode Description
EnumThreadWindows ( int threadId, EnumThreadProc pfnEnum, IntPtr lParam ) : bool
FindWindow ( string lpClassName, string lpWindowName ) : IntPtr
FindWindowEx ( IntPtr parentHwnd, IntPtr childAfterHwnd, IntPtr className, string windowText ) : IntPtr
FindWindowEx ( IntPtr parentHandle, IntPtr childAfter, string className, string windowTitle ) : IntPtr
GetDesktopWindow ( ) : IntPtr
GetVistaStartMenuWnd ( IntPtr taskBarWnd ) : IntPtr

Returns the window handle of the Vista start menu orb.

GetWindowText ( IntPtr hWnd, StringBuilder text, int count ) : int
GetWindowThreadProcessId ( IntPtr hwnd, int &lpdwProcessId ) : uint
IsIconic ( IntPtr handle ) : bool
IsInsideVM ( ) : bool

Detect if running in various virtual machines. C# code only solution which is more compatible.

Main ( ) : void

The main entry point for the application.

MyEnumThreadWindowsProc ( IntPtr hWnd, IntPtr lParam ) : bool

Callback method that is called from 'EnumThreadWindows' in 'GetVistaStartMenuWnd'.

SetForegroundWindow ( IntPtr hWnd ) : IntPtr
SetParent ( IntPtr hWndChild, IntPtr hWndNewParent ) : IntPtr
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags ) : bool
ShowWindow ( IntPtr hwnd, int nCmdShow ) : int

Method Details

CheckIfInsideVirtualMachine() public static méthode

Check if running in VM and if SEB Windows Service is running or not.
public static CheckIfInsideVirtualMachine ( ) : void
Résultat void

CheckServicePolicy() public static méthode

public static CheckServicePolicy ( bool isServiceAvailable ) : void
isServiceAvailable bool
Résultat void

CloseSplash() public static méthode

public static CloseSplash ( ) : void
Résultat void

InitSEBDesktop() public static méthode

Create and initialize new desktop.
public static InitSEBDesktop ( ) : bool
Résultat bool

InitSebSettings() public static méthode

Create and initialize SEB client settings and check system compatibility. This method needs to be executed only once when SEB first starts (not when reconfiguring).
public static InitSebSettings ( ) : bool
Résultat bool

LoadingSebFile() public static méthode

Set loading .seb file flag.
public static LoadingSebFile ( bool loading ) : void
loading bool
Résultat void

ResetSEBDesktop() public static méthode

Reset desktop to the default one which was active before starting SEB.
public static ResetSEBDesktop ( ) : void
Résultat void

SEBToForeground() public static méthode

Move SEB to the foreground.
public static SEBToForeground ( ) : void
Résultat void

SetVisibility() public static méthode

Hide or show the Windows taskbar and startmenu.
public static SetVisibility ( bool show ) : void
show bool true to show, false to hide
Résultat void

StartSplash() public static méthode

public static StartSplash ( ) : void
Résultat void

isLoadingSebFile() public static méthode

Get loading .seb file flag.
public static isLoadingSebFile ( ) : bool
Résultat bool

Property Details

sessionCreateNewDesktop public_oe static_oe property

public static bool sessionCreateNewDesktop
Résultat bool

singleInstanceController public_oe static_oe property

public static SingleInstanceController,SebWindowsClient singleInstanceController
Résultat SingleInstanceController

splash public_oe static_oe property

public static SEBSplashScreen,SebWindowsClient splash
Résultat SEBSplashScreen