C# 클래스 SebWindowsClient.SebWindowsClientForm

상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: SafeExamBrowser/seb-win 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
closeSebClient bool
permittedProcessesCalls List
permittedProcessesIconImages List
permittedProcessesReferences List
sebPassword string
xulRunner System.Diagnostics.Process

공개 메소드들

메소드 설명
CloseSEBForm ( ) : void

Close SEB Form.

ExitApplication ( bool showLoadingScreen = true ) : void

Central code to exit the application Closes the form and asks for a quit password if necessary

GetApplicationPath ( string executable, string executablePath = "" ) : string

Get the full path of an application from which we know the executable name by searching the application paths which are set in the Registry.

GetPermittedApplicationPath ( Dictionary,System.Collections.Generic permittedProcess ) : string

Get the full path of an application from which we know the executable name by searching the application paths which are set in the Registry.

HideApplicationChooserForm ( ) : void

Hide SEB Application Chooser Form.

LoadFile ( string file ) : bool
OpenSEBForm ( ) : bool

Open SEB form.

SEBToForeground ( ) : void

Move SEB to the foreground.

SebWindowsClientForm ( ) : System

Constructor - initialise components.

SebWindowsClientForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Close form, if Quit Password is correct.

SebWindowsClientForm_Load ( object sender, EventArgs e ) : void

Load form.

SelectNextListItem ( ) : void

Show SEB Application Chooser Form.

SetVisibility ( bool show ) : void

Hide or show the Windows taskbar and startmenu.

ShowApplicationChooserForm ( ) : void

Show SEB Application Chooser Form.

ShowCloseDialogForm ( ) : void

Show SEB Close Form.

ShowCloseDialogFormConfirmation ( ) : void

보호된 메소드들

메소드 설명
OnLoad ( EventArgs e ) : void

OnLoad: Get the file name from command line arguments and load it.

ToolStripButton_Click ( object sender, EventArgs e ) : void

Handle click on permitted process in SEB taskbar: If process isn't running, it is started, otherwise the click is ignored.

비공개 메소드들

메소드 설명
CreateProcessWithExitHandler ( string fullPathArgumentsCall ) : Process

Create a new process and add an exited event handler.

EnumThreadCallback ( IntPtr hWnd, IntPtr lParam ) : bool
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
GetActiveWindowOfProcess ( Process proc ) : IntPtr

Returns the handle of the active window of a process

GetApplicationIcon ( string fullPath ) : Icon

Get icon for an application specified by a full path.

GetDesktopWindow ( ) : IntPtr
GetProcessIcon ( Process process ) : Icon

Get icon for a running process.

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
InitClientRegistryAndKillProcesses ( ) : bool

Set registry values and close prohibited processes.

IsIconic ( IntPtr handle ) : bool
MyEnumThreadWindowsForProcess ( int pid, IntPtr lParam ) : bool

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

MyEnumThreadWindowsProc ( IntPtr hWnd, IntPtr lParam ) : bool

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

OnXULRunnerShutdDownRequested ( object sender, EventArgs e ) : void
OnXulRunnerQuitLinkPressed ( object sender, EventArgs e ) : void
PlaceFormOnDesktop ( bool KeyboardShown, bool isInitial = false ) : void
SetForegroundWindow ( IntPtr hWnd ) : IntPtr
SetFormOnDesktop ( ) : bool

Set form on Desktop.

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
StartXulRunner ( string userDefinedArguments ) : bool

Start xulRunner process.

addPermittedProcessesToTS ( ) : void

Add permitted process names and icons to the SEB task bar (ToolStrip control) and start permitted processes which have the autostart option set

noSelectButton1_Click ( object sender, EventArgs e ) : void

Show dialog asking whether SEB should be closed

permittedProcess_Exited ( object sender, System e ) : void

Handle xulRunner_Exited event and display process information.

xulRunner_Exited ( object sender, System e ) : void

Handle xulRunner_Exited event and display process information.

메소드 상세

CloseSEBForm() 공개 메소드

Close SEB Form.
public CloseSEBForm ( ) : void
리턴 void

ExitApplication() 공개 메소드

Central code to exit the application Closes the form and asks for a quit password if necessary
public ExitApplication ( bool showLoadingScreen = true ) : void
showLoadingScreen bool
리턴 void

GetApplicationPath() 공개 메소드

Get the full path of an application from which we know the executable name by searching the application paths which are set in the Registry.
public GetApplicationPath ( string executable, string executablePath = "" ) : string
executable string
executablePath string
리턴 string

GetPermittedApplicationPath() 공개 메소드

Get the full path of an application from which we know the executable name by searching the application paths which are set in the Registry.
public GetPermittedApplicationPath ( Dictionary,System.Collections.Generic permittedProcess ) : string
permittedProcess Dictionary,System.Collections.Generic
리턴 string

HideApplicationChooserForm() 공개 메소드

Hide SEB Application Chooser Form.
public HideApplicationChooserForm ( ) : void
리턴 void

LoadFile() 공개 메소드

public LoadFile ( string file ) : bool
file string
리턴 bool

OnLoad() 보호된 메소드

OnLoad: Get the file name from command line arguments and load it.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
리턴 void

OpenSEBForm() 공개 메소드

Open SEB form.
public OpenSEBForm ( ) : bool
리턴 bool

SEBToForeground() 공개 정적인 메소드

Move SEB to the foreground.
public static SEBToForeground ( ) : void
리턴 void

SebWindowsClientForm() 공개 메소드

Constructor - initialise components.
public SebWindowsClientForm ( ) : System
리턴 System

SebWindowsClientForm_FormClosing() 공개 메소드

Close form, if Quit Password is correct.
public SebWindowsClientForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object
e System.Windows.Forms.FormClosingEventArgs
리턴 void

SebWindowsClientForm_Load() 공개 메소드

Load form.
public SebWindowsClientForm_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

SelectNextListItem() 공개 메소드

Show SEB Application Chooser Form.
public SelectNextListItem ( ) : 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

ShowApplicationChooserForm() 공개 메소드

Show SEB Application Chooser Form.
public ShowApplicationChooserForm ( ) : void
리턴 void

ShowCloseDialogForm() 공개 메소드

Show SEB Close Form.
public ShowCloseDialogForm ( ) : void
리턴 void

ShowCloseDialogFormConfirmation() 공개 메소드

public ShowCloseDialogFormConfirmation ( ) : void
리턴 void

ToolStripButton_Click() 보호된 메소드

Handle click on permitted process in SEB taskbar: If process isn't running, it is started, otherwise the click is ignored.
protected ToolStripButton_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

프로퍼티 상세

closeSebClient 공개적으로 프로퍼티

public bool closeSebClient
리턴 bool

permittedProcessesCalls 공개적으로 프로퍼티

public List permittedProcessesCalls
리턴 List

permittedProcessesIconImages 공개적으로 프로퍼티

public List permittedProcessesIconImages
리턴 List

permittedProcessesReferences 공개적으로 프로퍼티

public List permittedProcessesReferences
리턴 List

sebPassword 공개적으로 프로퍼티

public string sebPassword
리턴 string

xulRunner 공개적으로 프로퍼티

public Process,System.Diagnostics xulRunner
리턴 System.Diagnostics.Process