C# Class ManagedWin32.Desktop

Inheritance: IDisposable
Exibir arquivo Open project: MathewSachin/ManagedWin32

Public Methods

Method Description
Close ( ) : bool

Closes the handle to a desktop.

CreateProcess ( string path ) : Process

Creates a new process in a desktop.

Desktop ( string name ) : ManagedWin32.Api
Dispose ( ) : void

Dispose Object.

Dispose ( bool disposing ) : void

Dispose Object.

Exists ( string name, bool caseInsensitive = false ) : bool

Checks if the specified desktop exists.

GetDesktops ( ) : IEnumerable

Enumerates all of the desktops.

GetProcesses ( ) : IEnumerable

Gets an array of all the processes running on this desktop.

GetWindows ( ) : IEnumerable

Enumerates the windows on a desktop.

Prepare ( ) : void

Prepares a desktop for use. For use only on newly created desktops, call straight after CreateDesktop.

Show ( ) : bool

Switches input to the currently opened desktop.

ToString ( ) : string

Gets the desktop name.

Private Methods

Method Description
CheckDisposed ( ) : void
Desktop ( IntPtr desktop ) : ManagedWin32.Api
Open ( string name ) : Desktop

Method Details

Close() public method

Closes the handle to a desktop.
public Close ( ) : bool
return bool

CreateProcess() public method

Creates a new process in a desktop.
public CreateProcess ( string path ) : Process
path string Path to application.
return System.Diagnostics.Process

Desktop() public method

public Desktop ( string name ) : ManagedWin32.Api
name string
return ManagedWin32.Api

Dispose() public method

Dispose Object.
public Dispose ( ) : void
return void

Dispose() public method

Dispose Object.
public Dispose ( bool disposing ) : void
disposing bool True to dispose managed resources.
return void

Exists() public static method

Checks if the specified desktop exists.
public static Exists ( string name, bool caseInsensitive = false ) : bool
name string The name of the desktop.
caseInsensitive bool If the search is case INsensitive.
return bool

GetDesktops() public static method

Enumerates all of the desktops.
public static GetDesktops ( ) : IEnumerable
return IEnumerable

GetProcesses() public method

Gets an array of all the processes running on this desktop.
public GetProcesses ( ) : IEnumerable
return IEnumerable

GetWindows() public method

Enumerates the windows on a desktop.
public GetWindows ( ) : IEnumerable
return IEnumerable

Prepare() public method

Prepares a desktop for use. For use only on newly created desktops, call straight after CreateDesktop.
public Prepare ( ) : void
return void

Show() public method

Switches input to the currently opened desktop.
public Show ( ) : bool
return bool

ToString() public method

Gets the desktop name.
public ToString ( ) : string
return string