HwndSourceHook 代理人
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示處理 Win32 視窗訊息的方法。
public delegate IntPtr HwndSourceHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool % handled);
C#
public delegate IntPtr HwndSourceHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
type HwndSourceHook = delegate of nativeint * int * nativeint * nativeint * bool -> nativeint
Public Delegate Function HwndSourceHook(hwnd As IntPtr, msg As Integer, wParam As IntPtr, lParam As IntPtr, ByRef handled As Boolean) As IntPtr
- hwnd
-
IntPtr
nativeint
視窗控制代碼 (Window Handle)。
- msg
- Int32
訊息 ID。
- wParam
-
IntPtr
nativeint
訊息的 wParam 值。
- lParam
-
IntPtr
nativeint
訊息的 lParam 值。
- handled
- Boolean
表示訊息是否已處理的值。 如果訊息已經過處理則將值設定為 true
,否則為 false
。
-
IntPtr
nativeint
相應的傳回值視特定的訊息而定。 請參閱正在處理 Win32 訊息的訊息檔詳細資料。
AddHook使用 方法來註冊此處理程式以接收訊息。
Get |
取得表示特定委派所代表之方法的物件。 |
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |