C# Class ManagedWin32.Desktop

Inheritance: IDisposable
Afficher le fichier Open project: MathewSachin/ManagedWin32

Méthodes publiques

Méthode 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

Méthode Description
CheckDisposed ( ) : void
Desktop ( IntPtr desktop ) : ManagedWin32.Api
Open ( string name ) : Desktop

Method Details

Close() public méthode

Closes the handle to a desktop.
public Close ( ) : bool
Résultat bool

CreateProcess() public méthode

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

Desktop() public méthode

public Desktop ( string name ) : ManagedWin32.Api
name string
Résultat ManagedWin32.Api

Dispose() public méthode

Dispose Object.
public Dispose ( ) : void
Résultat void

Dispose() public méthode

Dispose Object.
public Dispose ( bool disposing ) : void
disposing bool True to dispose managed resources.
Résultat void

Exists() public static méthode

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.
Résultat bool

GetDesktops() public static méthode

Enumerates all of the desktops.
public static GetDesktops ( ) : IEnumerable
Résultat IEnumerable

GetProcesses() public méthode

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

GetWindows() public méthode

Enumerates the windows on a desktop.
public GetWindows ( ) : IEnumerable
Résultat IEnumerable

Prepare() public méthode

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

Show() public méthode

Switches input to the currently opened desktop.
public Show ( ) : bool
Résultat bool

ToString() public méthode

Gets the desktop name.
public ToString ( ) : string
Résultat string