C# Class Tsukikage.Windows.Messaging.MessageThread

Win32 Message Loop Thread for win32 multimedia API callbacks Win32 メッセージループスレッドを作って、マルチメディア系 Win32 APIからのコールバックを受け取る
Inheritance: IDisposable, IMessageFilter
ファイルを表示 Open project: ttsuki/ttsuki Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Exit thread by posting WM_QUIT and release all resources. WM_QUITを送ってスレッドを終了し、リソースを解放する。

Invoke ( CallbackDelegate action ) : void
MessageThread ( ) : System

Create new message loop thread. 新しいメッセージループスレッドを作る

MessageThread ( bool isBackground ) : System

Create new message loop thread. 新しいメッセージループスレッドを作る

MessageThread ( bool isBackground, ThreadPriority threadPriority ) : System

Create new message loop thread. 新しいメッセージループスレッドを作る

PostMessage ( int msg, IntPtr wParam, IntPtr lParam ) : void

Post message to the thread. スレッドにメッセージを送る

Private Methods

Method Description
GetCurrentThreadId ( ) : int
IMessageFilter ( Message &m ) : bool
PostThreadMessage ( int idThread, int msg, IntPtr wParam, IntPtr lParam ) : bool

Method Details

Dispose() public method

Exit thread by posting WM_QUIT and release all resources. WM_QUITを送ってスレッドを終了し、リソースを解放する。
public Dispose ( ) : void
return void

Invoke() public method

public Invoke ( CallbackDelegate action ) : void
action CallbackDelegate
return void

MessageThread() public method

Create new message loop thread. 新しいメッセージループスレッドを作る
public MessageThread ( ) : System
return System

MessageThread() public method

Create new message loop thread. 新しいメッセージループスレッドを作る
public MessageThread ( bool isBackground ) : System
isBackground bool バックグラウンドスレッドにする場合はtrue
return System

MessageThread() public method

Create new message loop thread. 新しいメッセージループスレッドを作る
public MessageThread ( bool isBackground, ThreadPriority threadPriority ) : System
isBackground bool バックグラウンドスレッドにする場合はtrue
threadPriority ThreadPriority スレッドの実行優先度
return System

PostMessage() public method

Post message to the thread. スレッドにメッセージを送る
public PostMessage ( int msg, IntPtr wParam, IntPtr lParam ) : void
msg int
wParam System.IntPtr
lParam System.IntPtr
return void