C# 클래스 UlteriusServer.Api.Win32.Desktop

Encapsulates the Desktop API.
상속: IDisposable, ICloneable
파일 보기 프로젝트 열기: Ulterius/server 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Default Desktop
Input Desktop

공개 메소드들

메소드 설명
Clone ( ) : object

Creates a new Desktop object with the same desktop open.

Close ( ) : bool

Closes the handle to a desktop.

Create ( string name ) : bool

Creates a new desktop. If a handle is open, it will be closed.

CreateDesktop ( string name ) : Desktop

Creates a new desktop.

CreateProcess ( string path ) : Process

Creates a new process in a desktop.

CreateProcess ( string path, string desktop ) : Process

Creates a new process on the specified desktop.

Desktop ( ) : System

Creates a new Desktop object.

Dispose ( ) : void

Dispose Object.

Dispose ( bool disposing ) : void

Dispose Object.

Exists ( string name ) : bool

Checks if the specified desktop exists (using a case sensitive search).

Exists ( string name, bool caseInsensitive ) : bool

Checks if the specified desktop exists.

GetCurrent ( ) : Desktop

Gets the desktop of the calling thread.

GetDesktopName ( Desktop desktop ) : string

Gets the name of a given desktop.

GetDesktopName ( IntPtr desktopHandle ) : string

Gets the name of a desktop from a desktop handle.

GetDesktops ( ) : string[]

Enumerates all of the desktops.

GetInputProcesses ( ) : System.Diagnostics.Process[]

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

GetWindows ( ) : WindowCollection

Enumerates the windows on a desktop.

Open ( string name ) : bool

Opens a desktop.

OpenDefaultDesktop ( ) : Desktop

Opens the default desktop.

OpenDesktop ( string name ) : Desktop

Opens a desktop.

OpenInput ( ) : bool

Opens the current input desktop.

OpenInputDesktop ( ) : Desktop

Opens the current input desktop.

Prepare ( ) : void

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

SetCurrent ( Desktop desktop ) : bool

Sets the desktop of the calling thread. NOTE: Function will fail if thread has hooks or windows in the current desktop.

Show ( ) : bool

Switches input to the currently opened desktop.

Show ( string name ) : bool

Switches to the specified desktop.

ToString ( ) : string

Gets the desktop name.

비공개 메소드들

메소드 설명
CheckDisposed ( ) : void
CloseDesktop ( IntPtr hDesktop ) : bool
CreateDesktop ( string lpszDesktop, IntPtr lpszDevice, IntPtr pDevmode, int dwFlags, long dwDesiredAccess, IntPtr lpsa ) : IntPtr
CreateProcess ( string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, int dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, STARTUPINFO &lpStartupInfo, PROCESS_INFORMATION &lpProcessInformation ) : bool
Desktop ( IntPtr desktop ) : System
DesktopProc ( string lpszDesktop, IntPtr lParam ) : bool
DesktopWindowsProc ( IntPtr wndHandle, IntPtr lParam ) : bool
EnumDesktopWindows ( IntPtr hDesktop, EnumDesktopWindowsProc lpfn, IntPtr lParam ) : bool
EnumDesktops ( IntPtr hwinsta, EnumDesktopProc lpEnumFunc, IntPtr lParam ) : bool
GetCurrentThreadId ( ) : int
GetProcessId ( IntPtr process ) : int
GetProcessWindowStation ( ) : IntPtr
GetThreadDesktop ( int dwThreadId ) : IntPtr
GetThreadId ( IntPtr thread ) : int
GetUserObjectInformation ( IntPtr hObj, int nIndex, IntPtr pvInfo, int nLength, int &lpnLengthNeeded ) : bool
GetWindowText ( IntPtr hWnd, IntPtr lpString, int nMaxCount ) : int
OpenDesktop ( string lpszDesktop, int dwFlags, bool fInherit, long dwDesiredAccess ) : IntPtr
OpenInputDesktop ( int dwFlags, bool fInherit, long dwDesiredAccess ) : IntPtr
SetThreadDesktop ( IntPtr hDesktop ) : bool
SwitchDesktop ( IntPtr hDesktop ) : bool
WTSGetActiveConsoleSessionId ( ) : int

메소드 상세

Clone() 공개 메소드

Creates a new Desktop object with the same desktop open.
public Clone ( ) : object
리턴 object

Close() 공개 메소드

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

Create() 공개 메소드

Creates a new desktop. If a handle is open, it will be closed.
public Create ( string name ) : bool
name string The name of the new desktop. Must be unique, and is case sensitive.
리턴 bool

CreateDesktop() 공개 정적인 메소드

Creates a new desktop.
public static CreateDesktop ( string name ) : Desktop
name string The name of the desktop to create. Names are case sensitive.
리턴 Desktop

CreateProcess() 공개 메소드

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

CreateProcess() 공개 정적인 메소드

Creates a new process on the specified desktop.
public static CreateProcess ( string path, string desktop ) : Process
path string Path to application.
desktop string Desktop name.
리턴 System.Diagnostics.Process

Desktop() 공개 메소드

Creates a new Desktop object.
public Desktop ( ) : System
리턴 System

Dispose() 공개 메소드

Dispose Object.
public Dispose ( ) : void
리턴 void

Dispose() 공개 메소드

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

Exists() 공개 정적인 메소드

Checks if the specified desktop exists (using a case sensitive search).
public static Exists ( string name ) : bool
name string The name of the desktop.
리턴 bool

Exists() 공개 정적인 메소드

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

GetCurrent() 공개 정적인 메소드

Gets the desktop of the calling thread.
public static GetCurrent ( ) : Desktop
리턴 Desktop

GetDesktopName() 공개 정적인 메소드

Gets the name of a given desktop.
public static GetDesktopName ( Desktop desktop ) : string
desktop Desktop Desktop object whos name is to be found.
리턴 string

GetDesktopName() 공개 정적인 메소드

Gets the name of a desktop from a desktop handle.
public static GetDesktopName ( IntPtr desktopHandle ) : string
desktopHandle System.IntPtr
리턴 string

GetDesktops() 공개 정적인 메소드

Enumerates all of the desktops.
public static GetDesktops ( ) : string[]
리턴 string[]

GetInputProcesses() 공개 정적인 메소드

Gets an array of all the processes running on the Input desktop.
public static GetInputProcesses ( ) : System.Diagnostics.Process[]
리턴 System.Diagnostics.Process[]

GetWindows() 공개 메소드

Enumerates the windows on a desktop.
public GetWindows ( ) : WindowCollection
리턴 WindowCollection

Open() 공개 메소드

Opens a desktop.
public Open ( string name ) : bool
name string The name of the desktop to open.
리턴 bool

OpenDefaultDesktop() 공개 정적인 메소드

Opens the default desktop.
public static OpenDefaultDesktop ( ) : Desktop
리턴 Desktop

OpenDesktop() 공개 정적인 메소드

Opens a desktop.
public static OpenDesktop ( string name ) : Desktop
name string The name of the desktop to open.
리턴 Desktop

OpenInput() 공개 메소드

Opens the current input desktop.
public OpenInput ( ) : bool
리턴 bool

OpenInputDesktop() 공개 정적인 메소드

Opens the current input desktop.
public static OpenInputDesktop ( ) : Desktop
리턴 Desktop

Prepare() 공개 메소드

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

SetCurrent() 공개 정적인 메소드

Sets the desktop of the calling thread. NOTE: Function will fail if thread has hooks or windows in the current desktop.
public static SetCurrent ( Desktop desktop ) : bool
desktop Desktop Desktop to put the thread in.
리턴 bool

Show() 공개 메소드

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

Show() 공개 정적인 메소드

Switches to the specified desktop.
public static Show ( string name ) : bool
name string Name of desktop to switch input to.
리턴 bool

ToString() 공개 메소드

Gets the desktop name.
public ToString ( ) : string
리턴 string

프로퍼티 상세

Default 공개적으로 정적으로 프로퍼티

Opens the default desktop.
public static Desktop,UlteriusServer.Api.Win32 Default
리턴 Desktop

Input 공개적으로 정적으로 프로퍼티

Opens the desktop the user if viewing.
public static Desktop,UlteriusServer.Api.Win32 Input
리턴 Desktop