C# Класс SebWindowsClient.SebWindowsClientMain

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
sessionCreateNewDesktop bool
singleInstanceController SingleInstanceController
splash SEBSplashScreen

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CheckIfInsideVirtualMachine() публичный статический Метод

Check if running in VM and if SEB Windows Service is running or not.
public static CheckIfInsideVirtualMachine ( ) : void
Результат void

CheckServicePolicy() публичный статический Метод

public static CheckServicePolicy ( bool isServiceAvailable ) : void
isServiceAvailable bool
Результат void

CloseSplash() публичный статический Метод

public static CloseSplash ( ) : void
Результат void

InitSEBDesktop() публичный статический Метод

Create and initialize new desktop.
public static InitSEBDesktop ( ) : bool
Результат bool

InitSebSettings() публичный статический Метод

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
Результат bool

LoadingSebFile() публичный статический Метод

Set loading .seb file flag.
public static LoadingSebFile ( bool loading ) : void
loading bool
Результат void

ResetSEBDesktop() публичный статический Метод

Reset desktop to the default one which was active before starting SEB.
public static ResetSEBDesktop ( ) : void
Результат void

SEBToForeground() публичный статический Метод

Move SEB to the foreground.
public static SEBToForeground ( ) : void
Результат void

SetVisibility() публичный статический Метод

Hide or show the Windows taskbar and startmenu.
public static SetVisibility ( bool show ) : void
show bool true to show, false to hide
Результат void

StartSplash() публичный статический Метод

public static StartSplash ( ) : void
Результат void

isLoadingSebFile() публичный статический Метод

Get loading .seb file flag.
public static isLoadingSebFile ( ) : bool
Результат bool

Описание свойств

sessionCreateNewDesktop публичное статическое свойство

public static bool sessionCreateNewDesktop
Результат bool

singleInstanceController публичное статическое свойство

public static SingleInstanceController,SebWindowsClient singleInstanceController
Результат SingleInstanceController

splash публичное статическое свойство

public static SEBSplashScreen,SebWindowsClient splash
Результат SEBSplashScreen